refactor: Update API request in ActivityComplete.svelte and add adventure search button in +page.svelte
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user