diff --git a/server/info/internal/handler/routes.go b/server/info/internal/handler/routes.go index a3c1fc4d..4852a939 100644 --- a/server/info/internal/handler/routes.go +++ b/server/info/internal/handler/routes.go @@ -18,7 +18,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { Handler: InfoHandler(serverCtx), }, { - Method: http.MethodGet, + Method: http.MethodPost, Path: "/api/info/user/profile", Handler: UserGetProfileHandler(serverCtx), }, diff --git a/server_api/info.api b/server_api/info.api index ef645d7a..c2ab7439 100644 --- a/server_api/info.api +++ b/server_api/info.api @@ -14,7 +14,7 @@ service info { post /api/info/user(UserInfoRequest) returns (response); @handler UserGetProfileHandler - get /api/info/user/profile(QueryProfileRequest) returns (response); + post /api/info/user/profile(QueryProfileRequest) returns (response); @handler UpdateProfileHandler post /api/info/user/profile/update(ProfileRequest) returns (response);