fix: re-enable automatic slash redirects (HTTPSRedirectMiddleware handles HTTPS)
This commit is contained in:
parent
d73a28011e
commit
4590cfd6d4
|
|
@ -36,8 +36,7 @@ app = FastAPI(
|
||||||
docs_url="/api/docs",
|
docs_url="/api/docs",
|
||||||
redoc_url="/api/redoc",
|
redoc_url="/api/redoc",
|
||||||
openapi_url="/api/openapi.json",
|
openapi_url="/api/openapi.json",
|
||||||
lifespan=lifespan,
|
lifespan=lifespan
|
||||||
redirect_slashes=False # Disable automatic slash redirects
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Add HTTPS redirect middleware
|
# Add HTTPS redirect middleware
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue