0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +00:00
This commit is contained in:
Loïc Hoguin 2015-02-16 18:03:35 +01:00
commit 4f2bbd2e5a
5 changed files with 23 additions and 23 deletions

View file

@ -13,8 +13,8 @@ to all handlers. To use REST for the current request, this function
must return a `cowboy_rest` tuple.
``` erlang
init(Req, Opts) ->
{cowboy_rest, Req, Opts}.
init(Req, _Opts) ->
{cowboy_rest, Req, #state{}}.
```
Cowboy will then switch to the REST protocol and start executing