finalized routes

This commit is contained in:
Alex
2025-03-01 09:56:38 +01:00
parent 309e3a9d1e
commit 91787b616e
8 changed files with 26 additions and 42 deletions

View File

@@ -16,7 +16,7 @@ export async function handle({ event, resolve }) {
// if there is no jwt load page as normal
return await resolve(event);
}
const response = await fetch(`${BASE_API_URI}/backend/users/current`, {
const response = await fetch(`${BASE_API_URI}/auth/users/current`, {
credentials: 'include',
headers: {
Cookie: `jwt=${jwt}`
@@ -37,11 +37,11 @@ export async function handle({ event, resolve }) {
userDatesFromRFC3339(data.user);
const [subscriptionsResponse, licenceCategoriesResponse] = await Promise.all([
fetch(`${BASE_API_URI}/backend/membership/subscriptions`, {
fetch(`${BASE_API_URI}/auth/subscriptions`, {
credentials: 'include',
headers: { Cookie: `jwt=${jwt}` }
}),
fetch(`${BASE_API_URI}/backend/licence/categories`, {
fetch(`${BASE_API_URI}/auth/licence/categories`, {
credentials: 'include',
headers: { Cookie: `jwt=${jwt}` }
})