diff options
Diffstat (limited to 'examples/rest_hello_world')
-rw-r--r-- | examples/rest_hello_world/src/toppage_handler.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/rest_hello_world/src/toppage_handler.erl b/examples/rest_hello_world/src/toppage_handler.erl index c41cf91..5b0dfc8 100644 --- a/examples/rest_hello_world/src/toppage_handler.erl +++ b/examples/rest_hello_world/src/toppage_handler.erl @@ -3,14 +3,14 @@ %% @doc Hello world handler. -module(toppage_handler). --export([init/3]). +-export([init/2]). -export([content_types_provided/2]). -export([hello_to_html/2]). -export([hello_to_json/2]). -export([hello_to_text/2]). -init(_Transport, _Req, []) -> - {upgrade, protocol, cowboy_rest}. +init(Req, Opts) -> + {rest, Req, Opts}. content_types_provided(Req, State) -> {[ |