use own api to replace jsonplaceholder.typicode.com (#7472)

pull/7738/head
Tan Li Hau 4 years ago committed by GitHub
parent e2676e4443
commit fac0df17df

@ -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…
Cancel
Save