Spaces:
Runtime error
Runtime error
Create routes.py
Browse files- bot/server/routes.py +12 -0
bot/server/routes.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PATH: bot/server/routes.py
|
| 2 |
+
from quart import Blueprint
|
| 3 |
+
|
| 4 |
+
bp = Blueprint("main", __name__)
|
| 5 |
+
|
| 6 |
+
@bp.get("/")
|
| 7 |
+
async def home():
|
| 8 |
+
return "OK: HF Webserver + Hydrogram running", 200
|
| 9 |
+
|
| 10 |
+
@bp.get("/health")
|
| 11 |
+
async def health():
|
| 12 |
+
return {"ok": True}, 200
|