refactor: Update API endpoint for fetching visited adventures

This commit is contained in:
Sean Morley
2024-07-12 22:07:36 -04:00
parent 34f26b36dd
commit cab7824510
8 changed files with 16 additions and 269 deletions

View File

@@ -8,7 +8,7 @@ export const load = (async (event) => {
if (!event.locals.user) {
return redirect(302, '/login');
} else {
let visitedFetch = await fetch(`${endpoint}/api/adventures/`, {
let visitedFetch = await fetch(`${endpoint}/api/adventures/all/`, {
headers: {
Cookie: `${event.cookies.get('auth')}`
}