Merge branch 'tanhauhau/gh-328'

pull/7498/head
tanhauhau 3 years ago
commit 0a086c85e4

@ -4,7 +4,7 @@
let photos = []; let photos = [];
onMount(async () => { onMount(async () => {
const res = await fetch(`https://jsonplaceholder.typicode.com/photos?_limit=20`); const res = await fetch(`/tutorial/api/album`);
photos = await res.json(); photos = await res.json();
}); });
</script> </script>

@ -15,7 +15,7 @@ We'll add an `onMount` handler that loads some data over the network:
let photos = []; let photos = [];
onMount(async () => { onMount(async () => {
const res = await fetch(`https://jsonplaceholder.typicode.com/photos?_limit=20`); const res = await fetch(`/tutorial/api/album`);
photos = await res.json(); photos = await res.json();
}); });
</script> </script>

Loading…
Cancel
Save