HouYunFei commited on
Commit ·
d4e898c
1
Parent(s): 52be8d2
feat: update route handling to support multiple HTTP methods for asset serving
Browse files- api/app.py +1 -1
api/app.py
CHANGED
|
@@ -48,7 +48,7 @@ def create_app() -> FastAPI:
|
|
| 48 |
app.include_router(register.create_router())
|
| 49 |
app.include_router(system.create_router(app_version))
|
| 50 |
|
| 51 |
-
@app.
|
| 52 |
async def serve_web(full_path: str):
|
| 53 |
asset = resolve_web_asset(full_path)
|
| 54 |
if asset is not None:
|
|
|
|
| 48 |
app.include_router(register.create_router())
|
| 49 |
app.include_router(system.create_router(app_version))
|
| 50 |
|
| 51 |
+
@app.api_route("/{full_path:path}", methods=["GET", "HEAD"], include_in_schema=False)
|
| 52 |
async def serve_web(full_path: str):
|
| 53 |
asset = resolve_web_asset(full_path)
|
| 54 |
if asset is not None:
|