diff --git a/src/lib/components/ImgButton.svelte b/src/lib/components/ImgButton.svelte
index ab2efc0..2d82111 100644
--- a/src/lib/components/ImgButton.svelte
+++ b/src/lib/components/ImgButton.svelte
@@ -1,7 +1,6 @@
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 197d573..4ec6ad1 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -6,14 +6,22 @@
import Header from '$lib/components/Header.svelte';
import Footer from '$lib/components/Footer.svelte';
+
+ let avatarApi = '';
+
+ page.subscribe((pg) => {
+ const url = new URL(pg.url);
+ url.pathname = '/api/avatar';
+ avatarApi = url.toString();
+ });
-
+
-
+