aboutsummaryrefslogtreecommitdiff
path: root/front/src
diff options
context:
space:
mode:
authorGuillermo Ramos2025-03-07 00:11:17 +0100
committerGuillermo Ramos2025-03-07 00:11:56 +0100
commit540828922a768cc7c08db82e6d7e91b9bee9ea18 (patch)
treec88892cae4435d0b9d4f6037872d2b272b51b418 /front/src
parent4316c73c352ce52de4494b22001f34cd0681831b (diff)
downloadhiccup-540828922a768cc7c08db82e6d7e91b9bee9ea18.tar.gz
Fix API call
Diffstat (limited to 'front/src')
-rw-r--r--front/src/Main.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/front/src/Main.elm b/front/src/Main.elm
index ca81647..52bc4c9 100644
--- a/front/src/Main.elm
+++ b/front/src/Main.elm
@@ -178,7 +178,7 @@ parseMortgageSpecs { totalValue, financedRate, i1, years } =
mortgageSpecsToURL : MortgageSpecs -> String
mortgageSpecsToURL { principal, i1, years } =
- UB.absolute [ "/api/simulate" ]
+ UB.absolute [ "api", "simulate" ]
[ UB.string "principal" (String.fromFloat principal)
, UB.string "i1" (String.fromFloat (i1 / 100))
, UB.int "years" years