fix
This commit is contained in:
parent
3fdd5d1d60
commit
d8d5bf698d
@ -33,7 +33,7 @@ handle_request("GET", "/host/metric", #{<<"uuid">> := UUID}, _) ->
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
%% 处理主机的授权的 取消激活
|
%% 处理主机的授权的 取消激活
|
||||||
handle_request("GET", "/host/status", _, #{<<"uuid">> := UUID}) when is_binary(UUID) ->
|
handle_request("GET", "/host/status", #{<<"uuid">> := UUID}, _) when is_binary(UUID) ->
|
||||||
case iot_host:get_pid(UUID) of
|
case iot_host:get_pid(UUID) of
|
||||||
undefined ->
|
undefined ->
|
||||||
{ok, 200, iot_util:json_error(404, <<"host not found">>)};
|
{ok, 200, iot_util:json_error(404, <<"host not found">>)};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user