hardik8588 commited on
Commit
2d6f20a
·
verified ·
1 Parent(s): cd60820

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1382,6 +1382,10 @@ async def verify_subscription(
1382
  print(f"Subscription verification error: {str(e)}")
1383
  raise HTTPException(status_code=500, detail=f"Subscription verification failed: {str(e)}")
1384
 
 
 
 
 
1385
  @app.post("/webhook/paypal")
1386
  async def paypal_webhook(request: Request):
1387
  """Handle PayPal subscription webhooks"""
 
1382
  print(f"Subscription verification error: {str(e)}")
1383
  raise HTTPException(status_code=500, detail=f"Subscription verification failed: {str(e)}")
1384
 
1385
+ @app.get("/health")
1386
+ def health_check():
1387
+ return {"status": "ok", "message": "API is running"}
1388
+
1389
  @app.post("/webhook/paypal")
1390
  async def paypal_webhook(request: Request):
1391
  """Handle PayPal subscription webhooks"""