Allow to delete routes (#1244)

This commit is contained in:
Juan Font
2023-03-06 09:05:40 +01:00
committed by GitHub
parent c9ecdd6ef1
commit ea82035222
17 changed files with 790 additions and 258 deletions

View File

@@ -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 ---

View File

@@ -45,4 +45,11 @@ message GetMachineRoutesRequest {
message GetMachineRoutesResponse {
repeated Route routes = 1;
}
}
message DeleteRouteRequest {
uint64 route_id = 1;
}
message DeleteRouteResponse {
}