use own api to replace jsonplaceholder.typicode.com

pull/7738/head
tanhauhau 4 years ago
parent 198eac6ed2
commit 60ac1fc49d

@ -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