refactoring

This commit is contained in:
Devaev Maxim
2020-05-29 06:54:34 +03:00
parent d79ed9f1be
commit 0ead2f45cf

View File

@@ -37,10 +37,10 @@ class WolApi:
# =====
@exposed_http("GET", "/wol")
async def __wol_state_handler(self, _: Request) -> Response:
async def __state_handler(self, _: Request) -> Response:
return make_json_response(self.__wol.get_state())
@exposed_http("POST", "/wol/wakeup")
async def __wol_wakeup_handler(self, _: Request) -> Response:
async def __wakeup_handler(self, _: Request) -> Response:
await self.__wol.wakeup()
return make_json_response()