fix: correct Starlette TemplateResponse signature and pin exact dependencies in requirements.txt
This commit is contained in:
+4
-3
@@ -36,11 +36,12 @@ app.include_router(api.router)
|
||||
app.include_router(proxy.router)
|
||||
|
||||
@app.get("/", response_class=HTMLResponse)
|
||||
@app.head("/", response_class=HTMLResponse)
|
||||
async def index_view(request: Request):
|
||||
return templates.TemplateResponse(
|
||||
"index.html",
|
||||
{
|
||||
"request": request,
|
||||
request=request,
|
||||
name="index.html",
|
||||
context={
|
||||
"universes": UNIVERSES,
|
||||
"app_name": settings.app_name
|
||||
}
|
||||
|
||||
+10
-9
@@ -1,9 +1,10 @@
|
||||
fastapi>=0.110.0
|
||||
uvicorn[standard]>=0.28.0
|
||||
httpx>=0.27.0
|
||||
websockets>=12.0
|
||||
jinja2>=3.1.3
|
||||
pyyaml>=6.0.1
|
||||
pydantic>=2.6.0
|
||||
pydantic-settings>=2.2.0
|
||||
python-multipart>=0.0.9
|
||||
fastapi==0.141.1
|
||||
starlette==1.6.0
|
||||
uvicorn[standard]==0.52.4
|
||||
httpx==0.28.1
|
||||
jinja2==3.1.6
|
||||
pyyaml==6.0.3
|
||||
pydantic==2.13.4
|
||||
pydantic-settings==2.15.0
|
||||
python-multipart==0.0.32
|
||||
python-dotenv==1.2.3
|
||||
|
||||
Reference in New Issue
Block a user