From 8399a1a7f08220aa4c02da729efc054e6456bacb Mon Sep 17 00:00:00 2001 From: rglst Date: Tue, 21 Feb 2023 11:40:50 +0100 Subject: [PATCH] Izmenio da zove API po domenu, ne localhost:... --- kuhkal/templates/pages/calculate.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kuhkal/templates/pages/calculate.html b/kuhkal/templates/pages/calculate.html index a2acf53..8c09b5e 100644 --- a/kuhkal/templates/pages/calculate.html +++ b/kuhkal/templates/pages/calculate.html @@ -5,7 +5,7 @@ recipe_id: 1, ammount:40, async getResults() { - this.results = await (await fetch('http://localhost:5000/calculate', { + this.results = await (await fetch('https://solidarna.cyberdeck.xyz/calculate', { method:'POST', body: JSON.stringify({ recipe_id: this.recipe_id,