Disable FastAPI redirect_slashes to stop 307s on API routes

https://claude.ai/code/session_01Xmxm2QLgFBgRJyYD6VukR6
This commit is contained in:
Claude
2026-04-02 18:35:10 +00:00
parent 86fbcfcf77
commit ab04d1aed0

View File

@@ -9,7 +9,7 @@ from app.db.session import lifespan
settings = get_settings() settings = get_settings()
app = FastAPI(title=settings.project_name, lifespan=lifespan) app = FastAPI(title=settings.project_name, lifespan=lifespan, redirect_slashes=False)
app.add_middleware( app.add_middleware(
CORSMiddleware, CORSMiddleware,