mirror of
https://github.com/aykhans/slash-e.git
synced 2025-06-15 12:27:49 +00:00
chore: add auth status api
This commit is contained in:
@ -8,6 +8,9 @@ import "google/api/annotations.proto";
|
||||
option go_package = "gen/api/v2";
|
||||
|
||||
service AuthService {
|
||||
rpc GetAuthStatus(GetAuthStatusRequest) returns (GetAuthStatusResponse) {
|
||||
option (google.api.http) = {post: "/api/v2/auth/status"};
|
||||
}
|
||||
rpc SignIn(SignInRequest) returns (SignInResponse) {
|
||||
option (google.api.http) = {post: "/api/v2/auth/signin"};
|
||||
}
|
||||
@ -19,6 +22,12 @@ service AuthService {
|
||||
}
|
||||
}
|
||||
|
||||
message GetAuthStatusRequest {}
|
||||
|
||||
message GetAuthStatusResponse {
|
||||
User user = 1;
|
||||
}
|
||||
|
||||
message SignInRequest {
|
||||
string email = 1;
|
||||
string password = 2;
|
||||
|
Reference in New Issue
Block a user