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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 {
}