Skip to content

Commit 666929a

Browse files
authored
use own api to replace jsonplaceholder.typicode.com (#7472)
1 parent d554cdb commit 666929a

File tree

1 file changed

+1
-1
lines changed
  • site/content/tutorial/07-lifecycle/01-onmount/app-b

1 file changed

+1
-1
lines changed

site/content/tutorial/07-lifecycle/01-onmount/app-b/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
let photos = [];
55
66
onMount(async () => {
7-
const res = await fetch(`https://jsonplaceholder.typicode.com/photos?_limit=20`);
7+
const res = await fetch(`/tutorial/api/album`);
88
photos = await res.json();
99
});
1010
</script>

0 commit comments

Comments
 (0)