This commit is contained in:
2026-04-20 10:28:53 +03:00
parent 7e776ea6e3
commit 4224da1a22
11 changed files with 520 additions and 6 deletions

View File

@@ -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).