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:
parent
9c6fcea589
commit
db9e771310
2 changed files with 13 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue