From b2ab2f9085f4c2d2ae3f1b89a7f9b8bdf08dfbde Mon Sep 17 00:00:00 2001 From: maslow Date: Wed, 7 Jun 2023 16:28:50 +0800 Subject: [PATCH] fix(web): fix /v1/profile api url missing (#1227) --- cli/src/api/v1/authentication.ts | 4 ++-- web/src/apis/v1/profile.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/src/api/v1/authentication.ts b/cli/src/api/v1/authentication.ts index a517feee60..fb476d6cfe 100644 --- a/cli/src/api/v1/authentication.ts +++ b/cli/src/api/v1/authentication.ts @@ -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 { return request({ - url: `/v1/profile`, + url: `/v1/auth/profile`, method: "GET", ...configParams, }); diff --git a/web/src/apis/v1/profile.ts b/web/src/apis/v1/profile.ts index c75f1583af..6c86e91f2f 100644 --- a/web/src/apis/v1/profile.ts +++ b/web/src/apis/v1/profile.ts @@ -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, });