Compare commits

..

No commits in common. "9cf3b3f0cb152c2c2c778e017cfb0475f8b73478" and "5d60b6c841732f1359ccbe43a8ba03ea09f878e9" have entirely different histories.

View file

@ -524,10 +524,7 @@ async def info_page():
@app.get("/zuechter") @app.get("/zuechter")
async def zuechter_landing(request: _Request): async def zuechter_landing():
from fastapi.responses import RedirectResponse as _RR
if os.getenv("STAGING") == "true":
return _RR("https://banyaro.app/zuechter", status_code=301)
return FileResponse(f"{STATIC_DIR}/zuechter.html", headers={"Cache-Control": "max-age=3600"}) return FileResponse(f"{STATIC_DIR}/zuechter.html", headers={"Cache-Control": "max-age=3600"})