This commit is contained in:
anlicheng 2023-08-31 17:20:37 +08:00
parent 3fdd5d1d60
commit d8d5bf698d

View File

@ -33,7 +33,7 @@ handle_request("GET", "/host/metric", #{<<"uuid">> := UUID}, _) ->
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
undefined ->
{ok, 200, iot_util:json_error(404, <<"host not found">>)};