add health check
This commit is contained in:
parent
5891a0c46d
commit
c901be5056
@ -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]),
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
# 签名算法的说明
|
# 签名算法的说明
|
||||||
|
|
||||||
|
## 服务提供方式
|
||||||
|
nginx代理转发
|
||||||
|
部署的域名为: https://lgsiot.njau.edu.cn/bot
|
||||||
|
|
||||||
## 约定token的值为
|
## 约定token的值为
|
||||||
aB3$dEfGhiJkLmNoPqRsTuVwXyZ!@#4f5e6d7c8b9a0f1e2d
|
aB3$dEfGhiJkLmNoPqRsTuVwXyZ!@#4f5e6d7c8b9a0f1e2d
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user