Allow to delete routes (#1244)
This commit is contained in:
parent
c9ecdd6ef1
commit
ea82035222
17 changed files with 790 additions and 258 deletions
12
grpcv1.go
12
grpcv1.go
|
@ -422,6 +422,18 @@ func (api headscaleV1APIServer) GetMachineRoutes(
|
|||
}, nil
|
||||
}
|
||||
|
||||
func (api headscaleV1APIServer) DeleteRoute(
|
||||
ctx context.Context,
|
||||
request *v1.DeleteRouteRequest,
|
||||
) (*v1.DeleteRouteResponse, error) {
|
||||
err := api.h.DeleteRoute(request.GetRouteId())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &v1.DeleteRouteResponse{}, nil
|
||||
}
|
||||
|
||||
func (api headscaleV1APIServer) CreateApiKey(
|
||||
ctx context.Context,
|
||||
request *v1.CreateApiKeyRequest,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue