diff options
author | Yorhel <git@yorhel.nl> | 2019-12-08 10:41:09 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-12-08 10:41:12 +0100 |
commit | 113ca9f820f24b81486b5fb66045aa5ac1cb49c5 (patch) | |
tree | 3f3957372a2b6dace43996fdfcf3100bb239556e /elm/User/Register.elm | |
parent | bf8739d1a5bc777eff864b6314a1e9bc3f464946 (diff) |
Fix json_api() URL matching + move URL parameters to POST body
For more consistency. Only exception right now is the password reset
form, which still has parameters in the URL. Didn't convert it as that
code doesn't use the elm_form() framework at the moment.
Diffstat (limited to 'elm/User/Register.elm')
-rw-r--r-- | elm/User/Register.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/User/Register.elm b/elm/User/Register.elm index add16418..60f5d7d4 100644 --- a/elm/User/Register.elm +++ b/elm/User/Register.elm @@ -62,7 +62,7 @@ update msg model = VNs n -> ({ model | vns = Maybe.withDefault model.vns (String.toInt n) }, Cmd.none) Submit -> ( { model | state = Api.Loading } - , Api.post "/u/register" (encodeForm model) Submitted ) + , Api.post "/u/register.json" (encodeForm model) Submitted ) Submitted GApi.Success -> ({ model | success = True }, Cmd.none) Submitted e -> ({ model | state = Api.Error e }, Cmd.none) |