diff --git a/client/components/CookbookForm.js b/client/components/CookbookForm.js index 85aae9a..4d939fc 100644 --- a/client/components/CookbookForm.js +++ b/client/components/CookbookForm.js @@ -14,7 +14,7 @@ export default { const who = ref("Grr, Kamo, Kimberley"); const submit = function () { - fetch("http://127.0.0.1:5000/soupboat/coockbook/", { + fetch("https://hub.xpub.nl/soupboat/cookbook/", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ diff --git a/cookbook.py b/cookbook.py index 4ac79ba..73bea49 100644 --- a/cookbook.py +++ b/cookbook.py @@ -80,7 +80,7 @@ r = { def home(): if request.method == "POST": create_recipe(request.json) - redirect(url_for("home.home")) + redirect(url_for("home")) return "hello"