Initial commit
This commit is contained in:
commit
9638f5a31b
45 files changed
+2421
No files matched your search
@@ -0,0 +1,9 @@
|
||||
from sanic import Sanic
|
||||
|
||||
app = Sanic(__name__)
|
||||
|
||||
from app.api.routes._index import s_index
|
||||
from app.api.routes.tonconnect import s_api_tonconnect_manifest
|
||||
|
||||
app.add_route(s_index, "/")
|
||||
app.add_route(s_api_tonconnect_manifest, "/api/tonconnect-manifest.json")
|
||||
@@ -0,0 +1,7 @@
|
||||
from sanic import response
|
||||
|
||||
|
||||
async def s_index(request):
|
||||
return response.text("OK")
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
from sanic import response
|
||||
|
||||
from app.core._config import PROJECT_HOST
|
||||
|
||||
|
||||
async def s_api_tonconnect_manifest(request):
|
||||
return response.json({
|
||||
"url": f"{PROJECT_HOST}/#from=tonconnect",
|
||||
"name": f"{PROJECT_HOST}", # TODO: maybe edit
|
||||
"iconUrl": "https://github.com/projscale/assets/blob/main/ton-connect.png?raw=true",
|
||||
})
|
||||
Reference in new issue
Block a user