File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 11from fastapi import FastAPI
2+ from fastapi .staticfiles import StaticFiles
3+
24from src .anno import router as anno_router
35from src .plan import router as plan_router
46from src .health_check import router as health_check_router
57from src .project import router as project_router
68
79app = FastAPI ()
810
11+ app .mount ("/static" , StaticFiles (directory = "/app/static" ), name = "static" )
12+
913app .include_router (anno_router )
1014app .include_router (plan_router )
1115app .include_router (health_check_router )
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ class Project(Model):
6565 image = TextField ()
6666 url = TextField ()
6767 platform = TextField ()
68+ download = BooleanField ()
6869 available = BooleanField ()
6970
7071 class Meta :
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ async def query_project(type_id: str = "GameTools"):
4141 "support" : [
4242 platform .strip () for platform in p .platform .split ("," ) if platform .strip ()
4343 ],
44+ "download" : p .download ,
4445 }
4546 for p in project_cache [0 ]
4647 if p .type_id == type_id
You can’t perform that action at this time.
0 commit comments