Spaces:
Running
Running
ok
Browse files- app/api/server.py +4 -0
app/api/server.py
CHANGED
|
@@ -62,6 +62,10 @@ def create_application() -> FastAPI:
|
|
| 62 |
|
| 63 |
app.include_router(api_v1_router, prefix="/v1")
|
| 64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
@app.get("/health", include_in_schema=False)
|
| 66 |
async def root_health():
|
| 67 |
return {"status": "ok", "version": _settings.app_version}
|
|
|
|
| 62 |
|
| 63 |
app.include_router(api_v1_router, prefix="/v1")
|
| 64 |
|
| 65 |
+
@app.get("/", include_in_schema=False)
|
| 66 |
+
async def root():
|
| 67 |
+
return {"message": f"{_settings.app_name} v{_settings.app_version} is running"}
|
| 68 |
+
|
| 69 |
@app.get("/health", include_in_schema=False)
|
| 70 |
async def root_health():
|
| 71 |
return {"status": "ok", "version": _settings.app_version}
|