Update api/app.py
Browse files- api/app.py +4 -4
api/app.py
CHANGED
@@ -9,15 +9,15 @@ logger = setup_logger(__name__)
|
|
9 |
def create_app():
|
10 |
app = FastAPI(
|
11 |
title="Production API",
|
12 |
-
docs_url=
|
13 |
-
redoc_url=
|
14 |
-
openapi_url=
|
15 |
)
|
16 |
|
17 |
# CORS settings
|
18 |
app.add_middleware(
|
19 |
CORSMiddleware,
|
20 |
-
allow_origins=["*"],
|
21 |
allow_credentials=True,
|
22 |
allow_methods=["*"],
|
23 |
allow_headers=["*"],
|
|
|
9 |
def create_app():
|
10 |
app = FastAPI(
|
11 |
title="Production API",
|
12 |
+
docs_url=None, # Disable Swagger UI
|
13 |
+
redoc_url=None, # Disable ReDoc
|
14 |
+
openapi_url=None, # Disable OpenAPI schema
|
15 |
)
|
16 |
|
17 |
# CORS settings
|
18 |
app.add_middleware(
|
19 |
CORSMiddleware,
|
20 |
+
allow_origins=["*"], # Adjust as needed for security
|
21 |
allow_credentials=True,
|
22 |
allow_methods=["*"],
|
23 |
allow_headers=["*"],
|