mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-22 23:17:09 +08:00
fix:int replace
This commit is contained in:
1 parent
42c2560cc6
commit
2417ca9401
1 file changed
+2
@@ -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