Rohan014 commited on
Commit
f02c4c4
·
verified ·
1 Parent(s): 79af200

create main.py

Browse files
Files changed (1) hide show
  1. main.py +12 -0
main.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
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"}