We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4343b1c commit ae9eba3Copy full SHA for ae9eba3
1 file changed
api/src/api/main.py
@@ -2,12 +2,13 @@
2
3
from api.dependency_container import DependencyContainer
4
from api.workflows.products import product_router
5
+from common.application_environment import ApplicationEnvironment
6
7
DependencyContainer.initialize()
-app = FastAPI()
8
+openapi_url = (
9
+ "/openapi.json"
10
+ if ApplicationEnvironment.get_current() != ApplicationEnvironment.PRODUCTION
11
+ else None
12
+)
13
+app = FastAPI(title="Python monorepo", version="0.1.0", openapi_url=openapi_url)
14
app.include_router(product_router.router)
-
-@app.get("/")
-async def root() -> str:
- return "Hello"
0 commit comments