Update api/app.py
Browse files- api/app.py +4 -6
api/app.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
# api/app.py
|
2 |
-
|
3 |
from fastapi import FastAPI, Request
|
4 |
from starlette.middleware.cors import CORSMiddleware
|
5 |
from fastapi.responses import JSONResponse
|
@@ -10,10 +8,10 @@ logger = setup_logger(__name__)
|
|
10 |
|
11 |
def create_app():
|
12 |
app = FastAPI(
|
13 |
-
title="
|
14 |
-
docs_url=
|
15 |
-
redoc_url=
|
16 |
-
openapi_url=
|
17 |
)
|
18 |
|
19 |
# CORS settings
|
|
|
|
|
|
|
1 |
from fastapi import FastAPI, Request
|
2 |
from starlette.middleware.cors import CORSMiddleware
|
3 |
from fastapi.responses import JSONResponse
|
|
|
8 |
|
9 |
def create_app():
|
10 |
app = FastAPI(
|
11 |
+
title="NiansuhAI API Gateway",
|
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
|