add signup method

This commit is contained in:
2026-06-29 00:46:57 +07:00
parent 3ec2853df6
commit bb2cb3a540
6 changed files with 300 additions and 19 deletions
+15
View File
@@ -17,6 +17,12 @@ service EveningDetectiveServer {
post: "/api/echo"
};
}
rpc Signup(SignupReq) returns (SignupRsp) {
option (google.api.http) = {
post: "/api/signup"
};
}
}
message PingReq {}
@@ -30,3 +36,12 @@ message EchoReq {
message EchoRsp {
string text = 1;
}
message SignupReq {
string name = 1;
string email = 2;
}
message SignupRsp {
string error = 1;
}