fix:int replace

This commit is contained in:
lan
2023-11-30 23:10:42 +08:00
parent fba40bd697
commit 48fe424ed4
+2
View File
@@ -28,6 +28,7 @@ app.add_middleware(
allow_headers=["*"],
)
@app.get('/assets/{file_path:path}')
async def assets(file_path: str):
if settings.max_save_seconds > 0:
@@ -47,6 +48,7 @@ async def assets(file_path: str):
return HTMLResponse(content=content, media_type='text/javascript')
return FileResponse(f'./fcb-fronted/dist/assets/{file_path}')
register_tortoise(
app,
generate_schemas=True,