add health check

This commit is contained in:
anlicheng 2025-09-04 17:53:45 +08:00
parent 5891a0c46d
commit c901be5056
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,10 @@ init(Req0, Opts) ->
}, Resp, Req1), }, Resp, Req1),
{ok, Req2, Opts}. {ok, Req2, Opts}.
%%
handle_request("GET", "/api/health_check", _) ->
{ok, 200, <<"OK">>};
%% %%
handle_request("POST", "/api/device_info/storeInfo", ReqBody) when is_binary(ReqBody) -> handle_request("POST", "/api/device_info/storeInfo", ReqBody) when is_binary(ReqBody) ->
#{<<"storeInfos">> := StoreInfos} = jiffy:decode(ReqBody, [return_maps]), #{<<"storeInfos">> := StoreInfos} = jiffy:decode(ReqBody, [return_maps]),

View File

@ -1,5 +1,9 @@
# 签名算法的说明 # 签名算法的说明
## 服务提供方式
nginx代理转发
部署的域名为: https://lgsiot.njau.edu.cn/bot
## 约定token的值为 ## 约定token的值为
aB3$dEfGhiJkLmNoPqRsTuVwXyZ!@#4f5e6d7c8b9a0f1e2d aB3$dEfGhiJkLmNoPqRsTuVwXyZ!@#4f5e6d7c8b9a0f1e2d