fix: get_protocol

This commit is contained in:
jhonliu 2022-05-06 09:21:53 +08:00
parent 6b63692f93
commit fa0e93ff9c

View File

@ -73,7 +73,7 @@ handle(OperationID, Args, Context, Req) ->
%% Proctol : Dlink协议列表
%% OperationId:protocol
%% :GET /iotapi/protocol
do_request(get_protocol, _Body, #{<<"sessionToken">> := _SessionToken} = _Context, _Req) ->
do_request(get_protocol, _Body, _Context, _Req) ->
Protocols = dgiot_dlink:get_all_protocol(),
{200, Protocols};