Skip to content

Commit b2ab2f9

Browse files
authored
fix(web): fix /v1/profile api url missing (#1227)
1 parent b3d03ae commit b2ab2f9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cli/src/api/v1/authentication.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export async function authControllerPat2Token(data: Pat2TokenDto, configParams:
3434
* @tags Authentication
3535
* @name AuthControllerGetProfile
3636
* @summary Get current user profile
37-
* @request GET:/v1/profile
37+
* @request GET:/v1/auth/profile
3838
* @secure
3939
*/
4040
export async function authControllerGetProfile(configParams: RequestParams = {}): Promise<any> {
4141
return request({
42-
url: `/v1/profile`,
42+
url: `/v1/auth/profile`,
4343
method: "GET",
4444
...configParams,
4545
});

web/src/apis/v1/profile.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ export async function AuthControllerGetProfile(
1919
error: string;
2020
data: Definitions.UserWithProfile;
2121
}> {
22-
// /v1/profile
22+
// /v1/auth/profile
2323
let _params: { [key: string]: any } = {
2424
appid: useGlobalStore.getState().currentApp?.appid || "",
2525
...params,
2626
};
27-
return request(`/v1/profile`, {
27+
return request(`/v1/auth/profile`, {
2828
method: "GET",
2929
params: params,
3030
});

0 commit comments

Comments
 (0)