Rohan014 commited on
Commit
71a020f
·
verified ·
1 Parent(s): 9c93268

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +8 -4
main.py CHANGED
@@ -1,12 +1,16 @@
1
  from fastapi import FastAPI
2
  import os
3
 
4
- app = FastAPI()
5
 
6
  @app.get("/")
7
- def read_root():
8
- return {"message": "Deployment Observability API Running"}
 
 
 
 
9
 
10
  @app.get("/health")
11
- def health():
12
  return {"status": "ok"}
 
1
  from fastapi import FastAPI
2
  import os
3
 
4
+ app = FastAPI(title="Deployment Observability API")
5
 
6
  @app.get("/")
7
+ async def root():
8
+ return {
9
+ "status": "healthy",
10
+ "service": "deployment-ready-ga2-e8c0f1",
11
+ "port": 7152,
12
+ }
13
 
14
  @app.get("/health")
15
+ async def health():
16
  return {"status": "ok"}