Skip to content

Commit

Permalink
fix(web): fix /v1/profile api url missing (#1227)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow authored Jun 7, 2023
1 parent b3d03ae commit b2ab2f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/src/api/v1/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export async function authControllerPat2Token(data: Pat2TokenDto, configParams:
* @tags Authentication
* @name AuthControllerGetProfile
* @summary Get current user profile
* @request GET:/v1/profile
* @request GET:/v1/auth/profile
* @secure
*/
export async function authControllerGetProfile(configParams: RequestParams = {}): Promise<any> {
return request({
url: `/v1/profile`,
url: `/v1/auth/profile`,
method: "GET",
...configParams,
});
Expand Down
4 changes: 2 additions & 2 deletions web/src/apis/v1/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export async function AuthControllerGetProfile(
error: string;
data: Definitions.UserWithProfile;
}> {
// /v1/profile
// /v1/auth/profile
let _params: { [key: string]: any } = {
appid: useGlobalStore.getState().currentApp?.appid || "",
...params,
};
return request(`/v1/profile`, {
return request(`/v1/auth/profile`, {
method: "GET",
params: params,
});
Expand Down

0 comments on commit b2ab2f9

Please sign in to comment.