quentinL52 commited on
Commit ·
dce3ceb
1
Parent(s): 1d95eb7
update
Browse files
main.py
CHANGED
|
@@ -18,7 +18,8 @@ app = FastAPI(
|
|
| 18 |
description="API for interview simulations.",
|
| 19 |
version="1.0.0",
|
| 20 |
docs_url="/docs",
|
| 21 |
-
redoc_url="/redoc"
|
|
|
|
| 22 |
)
|
| 23 |
|
| 24 |
ALLOWED_ORIGINS = os.getenv("CORS_ORIGINS", "*").split(",") if os.getenv("CORS_ORIGINS") != "*" else ["*"]
|
|
@@ -29,7 +30,6 @@ app.add_middleware(
|
|
| 29 |
allow_credentials=True,
|
| 30 |
allow_methods=["*"],
|
| 31 |
allow_headers=["*"],
|
| 32 |
-
redirect_slashes=True,
|
| 33 |
)
|
| 34 |
|
| 35 |
class HealthCheck(BaseModel):
|
|
|
|
| 18 |
description="API for interview simulations.",
|
| 19 |
version="1.0.0",
|
| 20 |
docs_url="/docs",
|
| 21 |
+
redoc_url="/redoc",
|
| 22 |
+
redirect_slashes=True,
|
| 23 |
)
|
| 24 |
|
| 25 |
ALLOWED_ORIGINS = os.getenv("CORS_ORIGINS", "*").split(",") if os.getenv("CORS_ORIGINS") != "*" else ["*"]
|
|
|
|
| 30 |
allow_credentials=True,
|
| 31 |
allow_methods=["*"],
|
| 32 |
allow_headers=["*"],
|
|
|
|
| 33 |
)
|
| 34 |
|
| 35 |
class HealthCheck(BaseModel):
|