Migrate to session based auth

This commit is contained in:
Sean Morley
2024-11-29 18:20:51 -05:00
parent b86c7258e7
commit c65fcc2558
13 changed files with 111 additions and 104 deletions

View File

@@ -14,12 +14,14 @@ export const load = (async (event) => {
return { data: [] };
}
let sessionId = event.cookies.get('sessionid');
let res = await fetch(
`${serverEndpoint}/api/adventures/search/?query=${query}&property=${property}`,
{
headers: {
'Content-Type': 'application/json',
Cookie: `${event.cookies.get('auth')}`
Cookie: `sessionid=${sessionId}`
}
}
);