| 1 |
%% Feel free to use, reuse and abuse the code in this file. |
| 2 |
|
| 3 |
%% @doc Hello world handler. |
| 4 |
-module(toppage_h). |
| 5 |
|
| 6 |
-export([init/2]). |
| 7 |
|
| 8 |
init(Req0, Opts) -> |
| 9 |
Req = cowboy_req:reply(200, #{ |
| 10 |
<<"content-type">> => <<"text/plain">> |
| 11 |
}, <<"Hello world!">>, Req0), |
| 12 |
{ok, Req, Opts}. |