This commit is contained in:
boufni95 2023-09-18 18:36:04 +02:00
parent 7784beabad
commit bfa23681e6
35 changed files with 4374 additions and 2666 deletions

View file

@ -96,7 +96,7 @@ service LightningPub {
// <App>
rpc AddApp(structs.AuthAppRequest) returns (structs.AuthApp) {
rpc AddApp(structs.AddAppRequest) returns (structs.AuthApp) {
option (auth_type) = "Admin";
option (http_method) = "post";
option (http_route) = "/api/admin/app/add";
@ -184,13 +184,13 @@ service LightningPub {
option (http_method) = "post";
option (http_route) = "/api/user/auth";
}
// USER
rpc GetUserInfo(structs.Empty)returns(structs.UserInfo){
option (auth_type) = "User";
option (http_method) = "post";
option (http_route) = "/api/user/info";
option (nostr) = true;
}
// USER
rpc AddProduct(structs.AddProductRequest) returns (structs.Product){
option (auth_type) = "User";
option (http_method) = "post";