test/custom-admin-ui #3

Merged
orion merged 673 commits from test/custom-admin-ui into master 2026-06-05 17:20:58 +08:00
Showing only changes of commit 48fe424ed4 - Show all commits
+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,