add get me route

This commit is contained in:
2026-07-06 22:41:58 +07:00
parent b7219cfff9
commit 728fcc6fda
8 changed files with 313 additions and 37 deletions
+13
View File
@@ -109,6 +109,12 @@ service EveningDetectiveServer {
get: "/api/users"
};
}
rpc GetMe(GetMeReq) returns (GetMeRsp) {
option (google.api.http) = {
get: "/api/me"
};
}
}
message PingReq {}
@@ -176,3 +182,10 @@ message User {
bool is_active = 5;
google.protobuf.Timestamp created_at = 6;
}
message GetMeReq {}
message GetMeRsp {
string error = 1;
User user = 2;
}