Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1 +1,19 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EXISTING IMPORTS (keep as-is)
|
| 2 |
+
from fastapi import FastAPI
|
| 3 |
+
# ... all your other imports (DO NOT TOUCH)
|
| 4 |
+
|
| 5 |
+
app = FastAPI()
|
| 6 |
+
|
| 7 |
+
# ✅ ADD THIS ONLY (top, after app creation)
|
| 8 |
+
@app.get("/")
|
| 9 |
+
def root():
|
| 10 |
+
return {"status": "ok"}
|
| 11 |
+
|
| 12 |
+
# ------------------------
|
| 13 |
+
# EVERYTHING BELOW = YOUR EXISTING CODE
|
| 14 |
+
# DO NOT MODIFY
|
| 15 |
+
# ------------------------
|
| 16 |
+
|
| 17 |
+
# your existing routes...
|
| 18 |
+
# your gmail logic...
|
| 19 |
+
# your endpoints...
|