fix:int replace
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user