We only allow POST for the registration form.
parent
2470af1296
commit
fa66ec399d
|
@ -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}.
|
||||
|
|
Loading…
Reference in New Issue