We only allow POST for the registration form.

main
absc 2024-08-02 23:46:24 +02:00
parent 2470af1296
commit fa66ec399d
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ init(Req, State) ->
{cowboy_rest, Req, State}.
allowed_methods(Req, State) ->
{[<<"PUT">>], Req, State}.
{[<<"POST">>], Req, State}.
content_types_accepted(Req, State) ->
{[{<<"application/x-www-form-urlencoded">>, create_user}], Req, State}.