Spaces:
Sleeping
Sleeping
Create main.py
Browse files
main.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
|
| 3 |
+
app = FastAPI(title="GA2 Observability API")
|
| 4 |
+
|
| 5 |
+
@app.get("/")
|
| 6 |
+
def root():
|
| 7 |
+
return {"message": "Deployment-ready-ga2-50e79a", "status": "active"}
|
| 8 |
+
|
| 9 |
+
@app.get("/health")
|
| 10 |
+
def health_check():
|
| 11 |
+
return {"status": "healthy", "port": 7211}
|