mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-30 00:46:29 +01:00
use own api to replace jsonplaceholder.typicode.com (#7472)
This commit is contained in:
parent
d554cdbb25
commit
666929a6d9
@ -4,7 +4,7 @@
|
||||
let photos = [];
|
||||
|
||||
onMount(async () => {
|
||||
const res = await fetch(`https://jsonplaceholder.typicode.com/photos?_limit=20`);
|
||||
const res = await fetch(`/tutorial/api/album`);
|
||||
photos = await res.json();
|
||||
});
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user