diff --git a/public/me b/public/api/v2/me similarity index 100% rename from public/me rename to public/api/v2/me diff --git a/src/api/me.ts b/src/api/me.ts index 5cf5ac25e..0e00a3dbe 100644 --- a/src/api/me.ts +++ b/src/api/me.ts @@ -3,7 +3,9 @@ import { expectResponseCode, getApiUrl } from '../utils/apiUtils' import { defaultFetchConfig } from './default' export const getMe = async (): Promise => { - const response = await fetch('/me') + const response = await fetch(getApiUrl() + '/me', { + ...defaultFetchConfig + }) expectResponseCode(response) return (await response.json()) as meResponse }