Skip to content

Commit a6be95e

Browse files
committed
๐Ÿ›fix(api): baseURL ์ •๊ทœํ™” ๋ฐ ํ† ํฐ ์Šคํ‚ต ๋กœ์ง ์ˆ˜์ •
1 parent 6e7f21d commit a6be95e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

โ€Žsrc/api/userApi.tsโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { api } from './axiosInstance';
22
import type { User } from '../types';
33

44
export async function postUserMe(): Promise<void> {
5-
await api.post('/user/me', null);
5+
await api.post('users/me', null);
66
}
77

88
export async function getMyProfile(): Promise<User> {
9-
const { data } = await api.get<User>('/user/me');
9+
const { data } = await api.get<User>('users/me');
1010
return data;
1111
}

โ€Žsrc/auth/callback.tsโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export async function handleAuthCallback(): Promise<TokenResponse | null> {
5757

5858
try {
5959
await postUserMe();
60-
const me = await getMyProfile();
61-
useAuthStore.getState().setUser(me);
60+
// const me = await getMyProfile();
61+
// useAuthStore.getState().setUser(me);
6262
} catch (e) {
6363
console.error('[callback] user sync failed', e);
6464
}

0 commit comments

Comments
ย (0)