aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/hello_h.erl
blob: e3c71abb3fc69375abc3a94ba34ef3c6500b1e65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
%% Feel free to use, reuse and abuse the code in this file.

-module(hello_h).

-export([init/2]).

init(Req, State) ->
	{ok, cowboy_req:reply(200, #{
		<<"content-type">> => <<"text/plain">>
	}, <<"Hello world!">>, Req), State}.