Update main.py
Browse files- app/main.py +9 -0
app/main.py
CHANGED
|
@@ -20,6 +20,15 @@ app.add_middleware(
|
|
| 20 |
allow_headers=["*"],
|
| 21 |
)
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
# Mount static files directory
|
| 24 |
app.mount("/static", StaticFiles(directory=str(settings.STATIC_DIR)), name="static")
|
| 25 |
|
|
|
|
| 20 |
allow_headers=["*"],
|
| 21 |
)
|
| 22 |
|
| 23 |
+
|
| 24 |
+
@app.get("/")
|
| 25 |
+
async def root():
|
| 26 |
+
return {
|
| 27 |
+
"status": "active",
|
| 28 |
+
"message": f"{settings.PROJECT_NAME} service is running",
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
|
| 32 |
# Mount static files directory
|
| 33 |
app.mount("/static", StaticFiles(directory=str(settings.STATIC_DIR)), name="static")
|
| 34 |
|