update routes

This commit is contained in:
2026-07-06 23:38:21 +07:00
parent 82ffda5c0a
commit 4f7a63a2c2
4 changed files with 132 additions and 133 deletions
+7 -7
View File
@@ -36,7 +36,7 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
service EveningDetectiveServer {
rpc Ping(PingReq) returns (PingRsp) {
option (google.api.http) = {
get: "/api/ping"
get: "/api/test/ping"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
security: {
@@ -47,7 +47,7 @@ service EveningDetectiveServer {
rpc Echo(EchoReq) returns (EchoRsp) {
option (google.api.http) = {
post: "/api/echo"
post: "/api/test/echo"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
security: {
@@ -58,7 +58,7 @@ service EveningDetectiveServer {
rpc Signup(SignupReq) returns (SignupRsp) {
option (google.api.http) = {
post: "/api/signup"
post: "/api/auth/signup"
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
@@ -70,7 +70,7 @@ service EveningDetectiveServer {
rpc RefreshPassword(RefreshPasswordReq) returns (RefreshPasswordRsp) {
option (google.api.http) = {
post: "/api/refresh-password"
post: "/api/auth/refresh-password"
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
@@ -82,7 +82,7 @@ service EveningDetectiveServer {
rpc Login(LoginReq) returns (LoginRsp) {
option (google.api.http) = {
post: "/api/login"
post: "/api/auth/login"
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
@@ -94,7 +94,7 @@ service EveningDetectiveServer {
rpc Refresh(RefreshReq) returns (RefreshRsp) {
option (google.api.http) = {
post: "/api/refresh"
post: "/api/auth/refresh"
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
@@ -118,7 +118,7 @@ service EveningDetectiveServer {
rpc GetMe(GetMeReq) returns (GetMeRsp) {
option (google.api.http) = {
get: "/api/me"
get: "/api/users/me"
};
}