mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 08:43:37 +00:00
Disable FastAPI redirect_slashes to stop 307s on API routes
https://claude.ai/code/session_01Xmxm2QLgFBgRJyYD6VukR6
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user