mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-18 08:41:54 +00:00
Allow to delete routes (#1244)
This commit is contained in:
@@ -150,6 +150,12 @@ service HeadscaleService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc DeleteRoute(DeleteRouteRequest) returns(DeleteRouteResponse) {
|
||||
option(google.api.http) = {
|
||||
delete : "/api/v1/routes/{route_id}"
|
||||
};
|
||||
}
|
||||
|
||||
// --- Route end ---
|
||||
|
||||
// --- ApiKeys start ---
|
||||
|
@@ -45,4 +45,11 @@ message GetMachineRoutesRequest {
|
||||
|
||||
message GetMachineRoutesResponse {
|
||||
repeated Route routes = 1;
|
||||
}
|
||||
}
|
||||
|
||||
message DeleteRouteRequest {
|
||||
uint64 route_id = 1;
|
||||
}
|
||||
|
||||
message DeleteRouteResponse {
|
||||
}
|
||||
|
Reference in New Issue
Block a user