From 7655134732d995ba28dafa95d4e1a61137eae7da Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 8 Jul 2022 14:40:14 +0800 Subject: [PATCH] refactor: update get current login user api Signed-off-by: Ryan Wang --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index efa4e7fc..e16e69c9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -132,7 +132,9 @@ async function loadPluginModules() { } async function loadCurrentUser() { - const response = await axiosInstance.get(`/custom-api/v1alpha1/users/me`); + const response = await axiosInstance.get( + `/apis/api.halo.run/v1alpha1/users/-` + ); app.provide("currentUser", response.data); }