bivav commited on
Commit
78d8872
·
1 Parent(s): 1ee4034

Update main.py

Browse files
Files changed (1) hide show
  1. 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