From 666929a6d9d8f129bca17754119c577edd6018ec Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Wed, 20 Apr 2022 12:48:55 +0800 Subject: [PATCH] use own api to replace jsonplaceholder.typicode.com (#7472) --- site/content/tutorial/07-lifecycle/01-onmount/app-b/App.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/tutorial/07-lifecycle/01-onmount/app-b/App.svelte b/site/content/tutorial/07-lifecycle/01-onmount/app-b/App.svelte index 831914fa6a..7dc7a1ec7a 100644 --- a/site/content/tutorial/07-lifecycle/01-onmount/app-b/App.svelte +++ b/site/content/tutorial/07-lifecycle/01-onmount/app-b/App.svelte @@ -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(); });