This commit is contained in:
hatim 2023-05-18 19:50:39 +02:00
parent e3c32a5650
commit dc920d5e0c
8 changed files with 2273 additions and 2187 deletions

View file

@ -96,12 +96,18 @@ service LightningPub {
// <App>
rpc AddApp(structs.AddAppRequest) returns (structs.AddAppResponse) {
rpc AddApp(structs.AuthAppRequest) returns (structs.AuthApp) {
option (auth_type) = "Admin";
option (http_method) = "post";
option (http_route) = "/api/admin/app/add";
};
rpc AuthApp(structs.AuthAppRequest) returns (structs.AuthApp) {
option (auth_type) = "Admin";
option (http_method) = "post";
option (http_route) = "/api/admin/app/auth";
}
rpc GetApp(structs.Empty) returns (structs.Application) {
option (auth_type) = "App";
option (http_method) = "post";