dev@locazia: edit services list
This commit is contained in:
1 parent
e5af6e8ddb
commit
dda25a71f4
3 files changed
+8
-8
No files matched your search
+2
-2
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user