master
km0 3 years ago
parent 29129ed4d7
commit e357db8576

@ -14,7 +14,7 @@ export default {
const who = ref("Grr, Kamo, Kimberley"); const who = ref("Grr, Kamo, Kimberley");
const submit = function () { const submit = function () {
fetch("http://127.0.0.1:5000/soupboat/coockbook/", { fetch("https://hub.xpub.nl/soupboat/cookbook/", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify({ body: JSON.stringify({

@ -80,7 +80,7 @@ r = {
def home(): def home():
if request.method == "POST": if request.method == "POST":
create_recipe(request.json) create_recipe(request.json)
redirect(url_for("home.home")) redirect(url_for("home"))
return "hello" return "hello"

Loading…
Cancel
Save