Stage 2
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
-module(handler_health).
|
||||
|
||||
-export([init/2]).
|
||||
|
||||
init(Req, _Opts) ->
|
||||
{ok, Resp} = cowboy_req:reply(200, #{<<"content-type">> => <<"application/json">>}, <<"{\"status\":\"ok\"}">>, Req),
|
||||
Resp.
|
||||
Body = jsx:encode(#{status => <<"ok">>}),
|
||||
cowboy_req:reply(200, #{<<"content-type">> => <<"application/json">>}, Body, Req).
|
||||
Reference in New Issue
Block a user