Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"""
|