diff options
Diffstat (limited to 'examples/hello_world/src/toppage_handler.erl')
-rw-r--r-- | examples/hello_world/src/toppage_handler.erl | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/hello_world/src/toppage_handler.erl b/examples/hello_world/src/toppage_handler.erl index 18a6343..e8e672e 100644 --- a/examples/hello_world/src/toppage_handler.erl +++ b/examples/hello_world/src/toppage_handler.erl @@ -4,13 +4,9 @@ -module(toppage_handler). -export([init/2]). --export([handle/2]). init(Req, Opts) -> - {http, Req, Opts}. - -handle(Req, State) -> Req2 = cowboy_req:reply(200, [ {<<"content-type">>, <<"text/plain">>} ], <<"Hello world!">>, Req), - {ok, Req2, State}. + {ok, Req2, Opts}. |