DreamStream-1 commited on
Commit
049e709
·
verified ·
1 Parent(s): 025f913

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -1009,6 +1009,18 @@ async def get_catalog():
1009
  logger.error(f"Error serving catalog: {e}")
1010
  raise HTTPException(status_code=500, detail="Error serving catalog")
1011
 
 
 
 
 
 
 
 
 
 
 
 
 
1012
  # --- Webhook Endpoint for WhatsApp/WhatsJet ---
1013
  @app.post("/webhook")
1014
  async def webhook(request: Request):
 
1009
  logger.error(f"Error serving catalog: {e}")
1010
  raise HTTPException(status_code=500, detail="Error serving catalog")
1011
 
1012
+ @app.get("/", response_class=HTMLResponse)
1013
+ async def root():
1014
+ return """
1015
+ <h2>Apex Biotical Veterinary WhatsApp Bot</h2>
1016
+ <p>The bot is running! Use the API endpoints for WhatsApp integration.</p>
1017
+ <ul>
1018
+ <li><b>POST /webhook</b> – WhatsApp webhook endpoint</li>
1019
+ <li><b>GET /health</b> – Health check</li>
1020
+ <li><b>GET /catalog</b> – Download product catalog PDF</li>
1021
+ </ul>
1022
+ """
1023
+
1024
  # --- Webhook Endpoint for WhatsApp/WhatsJet ---
1025
  @app.post("/webhook")
1026
  async def webhook(request: Request):