dev@locazia: edit services list
This commit is contained in:
parent
e5af6e8ddb
commit
dda25a71f4
|
|
@ -11,7 +11,7 @@ app.register_middleware(attach_user_to_request, "request")
|
|||
app.register_middleware(close_db_session, "response")
|
||||
|
||||
from app.api.routes._index import s_index, s_favicon
|
||||
from app.api.routes._system import s_api_system, s_api_system_version, s_api_system_send_status
|
||||
from app.api.routes._system import s_api_v1_node, s_api_system_version, s_api_system_send_status
|
||||
from app.api.routes.auth import s_api_v1_auth_twa
|
||||
from app.api.routes.statics import s_api_tonconnect_manifest, s_api_platform_metadata
|
||||
from app.api.routes.node_storage import s_api_v1_storage_post, s_api_v1_storage_get
|
||||
|
|
@ -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_system, "/api/node", methods=["GET", "OPTIONS"])
|
||||
app.add_route(s_api_v1_node, "/api/1/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"])
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ def get_git_info():
|
|||
return branch_name, commit_hash
|
||||
|
||||
|
||||
async def s_api_system(request): # /api/node
|
||||
async def s_api_v1_node(request): # /api/v1/node
|
||||
return response.json({
|
||||
'id': b58encode(hot_pubkey).decode(),
|
||||
'node_address': service_wallet.address.to_string(1, 1, 1),
|
||||
|
|
|
|||
|
|
@ -16,14 +16,14 @@ class Memory:
|
|||
self.transactions_disabled = False
|
||||
|
||||
self.known_states = {
|
||||
"uploader": {
|
||||
"status": "no status",
|
||||
"timestamp": None
|
||||
},
|
||||
"uploader_bot": {
|
||||
"uploader_daemon": {
|
||||
"status": "no status",
|
||||
"timestamp": None
|
||||
},
|
||||
# "uploader_bot": {
|
||||
# "status": "no status",
|
||||
# "timestamp": None
|
||||
# },
|
||||
"indexator": {
|
||||
"status": "no status",
|
||||
"timestamp": None
|
||||
|
|
|
|||
Loading…
Reference in New Issue