diff --git a/thoughts-frontend/lib/api.ts b/thoughts-frontend/lib/api.ts index 39cdc36..544d085 100644 --- a/thoughts-frontend/lib/api.ts +++ b/thoughts-frontend/lib/api.ts @@ -187,7 +187,7 @@ export const getMeFollowingList = (token: string) => // ── Users ───────────────────────────────────────────────────────────────── export const getUserProfile = (username: string, token: string | null) => - apiFetch(`/users/${username}`, {}, UserSchema, token); + apiFetch(`/users/${username}/profile`, {}, UserSchema, token); export const getFollowersList = (username: string, token: string | null) => apiFetch(`/users/${username}/follower-list`, {}, z.object({ total: z.number(), items: z.array(UserSchema) }), token);