understanding commited on
Commit
2e1e1ba
·
verified ·
1 Parent(s): c652a0a

Create routes.py

Browse files
Files changed (1) hide show
  1. 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