From eecbf770e1eb0f7e49e894c168780eb06a69c04a Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 26 May 2022 00:32:05 +0300 Subject: frontend: fix onboarding sending the request to the wrong place --- kittybox-rs/src/frontend/onboarding.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kittybox-rs') diff --git a/kittybox-rs/src/frontend/onboarding.js b/kittybox-rs/src/frontend/onboarding.js index 7f9aa32..89ad84a 100644 --- a/kittybox-rs/src/frontend/onboarding.js +++ b/kittybox-rs/src/frontend/onboarding.js @@ -75,7 +75,7 @@ form.onsubmit = async (event) => { }).filter(feed => feed.name == "" || feed.slug == "") }; - await fetch("/", { + await fetch("/onboarding", { method: "POST", body: JSON.stringify(json), headers: { "Content-Type": "application/json" } @@ -84,4 +84,4 @@ form.onsubmit = async (event) => { window.location.href = window.location.href; } }) -} \ No newline at end of file +} -- cgit 1.4.1