Skip to content

Commit

Permalink
use own api to replace jsonplaceholder.typicode.com (#7472)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhauhau committed Apr 20, 2022
1 parent d554cdb commit 666929a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 666929a

Please sign in to comment.