1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-25 15:59:38 +02:00

refactor: Update API request in ActivityComplete.svelte and add adventure search button in +page.svelte

This commit is contained in:
Sean Morley 2024-08-01 18:18:07 -04:00
parent 9c6fcea589
commit db9e771310
2 changed files with 13 additions and 7 deletions

View file

@ -11,8 +11,14 @@
}
onMount(async () => {
let res = await fetch('/api/activity-types/types/');
let res = await fetch('/api/activity-types/types/', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
});
let data = await res.json();
console.log('ACTIVITIES' + data);
if (data) {
allActivities = data;
}