use own api to replace jsonplaceholder.typicode.com

pull/7472/head
tanhauhau 3 years ago
parent 9e8592ef2c
commit bc81291afc

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