mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 08:43:37 +00:00
Disable automatic trailing slash redirect in FastAPI
This commit is contained in:
@@ -9,7 +9,7 @@ from app.db.session import lifespan
|
||||
|
||||
|
||||
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(
|
||||
CORSMiddleware,
|
||||
|
||||
Reference in New Issue
Block a user