aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/hello_h.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/handlers/hello_h.erl')
-rw-r--r--test/handlers/hello_h.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/handlers/hello_h.erl b/test/handlers/hello_h.erl
new file mode 100644
index 0000000..3be7b6d
--- /dev/null
+++ b/test/handlers/hello_h.erl
@@ -0,0 +1,8 @@
+%% This module sends a hello world response.
+
+-module(hello_h).
+
+-export([init/2]).
+
+init(Req, Opts) ->
+ {ok, cowboy_req:reply(200, [], <<"Hello world!">>, Req), Opts}.