dev@locazia: many fixes

This commit is contained in:
user committed 2024-03-06 13:19:36 +03:00
1 parent dda25a71f4
commit cad723925c
3 files changed
+26 -10

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ from app.api.routes.content import s_api_v1_content_list
app.add_route(s_index, "/", methods=["GET", "OPTIONS"])
app.add_route(s_favicon, "/favicon.ico", methods=["GET", "OPTIONS"])
app.add_route(s_api_v1_node, "/api/1/node", methods=["GET", "OPTIONS"])
app.add_route(s_api_v1_node, "/api/v1/node", methods=["GET", "OPTIONS"])
app.add_route(s_api_system_version, "/api/system.version", methods=["GET", "OPTIONS"])
app.add_route(s_api_system_send_status, "/api/system.sendStatus", methods=["POST", "OPTIONS"])
+1
View File
@@ -47,6 +47,7 @@ async def s_api_system_send_status(request):
return response.json({'error': 'Invalid signature'}, status=400)
message = json.loads(message)
assert message.get('service') in request.app.ctx.memory.known_states, "Unknown service"
request.app.ctx.memory.known_states[
message['service']
] = {