mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
fixed POST of /hid/reset
This commit is contained in:
parent
37738e38e9
commit
e03cc67195
@ -49,7 +49,7 @@ class HidApi:
|
|||||||
async def __state_handler(self, _: aiohttp.web.Request) -> aiohttp.web.Response:
|
async def __state_handler(self, _: aiohttp.web.Request) -> aiohttp.web.Response:
|
||||||
return make_json_response(self.__hid.get_state())
|
return make_json_response(self.__hid.get_state())
|
||||||
|
|
||||||
@exposed_http("GET", "/hid/reset")
|
@exposed_http("POST", "/hid/reset")
|
||||||
async def __reset_handler(self, _: aiohttp.web.Request) -> aiohttp.web.Response:
|
async def __reset_handler(self, _: aiohttp.web.Request) -> aiohttp.web.Response:
|
||||||
await self.__hid.reset()
|
await self.__hid.reset()
|
||||||
return make_json_response()
|
return make_json_response()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user