fix:int replace
This commit is contained in:
@@ -28,6 +28,7 @@ app.add_middleware(
|
|||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@app.get('/assets/{file_path:path}')
|
@app.get('/assets/{file_path:path}')
|
||||||
async def assets(file_path: str):
|
async def assets(file_path: str):
|
||||||
if settings.max_save_seconds > 0:
|
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 HTMLResponse(content=content, media_type='text/javascript')
|
||||||
return FileResponse(f'./fcb-fronted/dist/assets/{file_path}')
|
return FileResponse(f'./fcb-fronted/dist/assets/{file_path}')
|
||||||
|
|
||||||
|
|
||||||
register_tortoise(
|
register_tortoise(
|
||||||
app,
|
app,
|
||||||
generate_schemas=True,
|
generate_schemas=True,
|
||||||
|
|||||||
Reference in New Issue
Block a user