新增小文件上传接口

This commit is contained in:
shuohigh@gmail.com
2025-05-20 13:54:15 +08:00
parent 668a5a33d4
commit d3afe850ed
6 changed files with 92 additions and 27 deletions

View File

@@ -88,7 +88,7 @@ async def alias_middleware(request: Request, call_next):
@web_app.get("/scalar", include_in_schema=False)
async def scalar():
return get_scalar_api_reference(openapi_url=web_app.openapi_schema, title="Modal worker web endpoint")
return get_scalar_api_reference(openapi_url=web_app.openapi_schema or '/openapi.json', title="Modal worker web endpoint")
web_app.include_router(ffmpeg.router)