From a96ed9138fe26c319f6d0711cc6b8893d58d844c Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Sat, 7 Mar 2026 19:36:27 -0500 Subject: [PATCH] feat: add /sentry-debug endpoint for verification Co-Authored-By: Claude Opus 4.6 --- backend/app/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/app/main.py b/backend/app/main.py index ccf3feb8..74b8a491 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -252,6 +252,12 @@ async def health_check(): return {"status": "healthy"} +@app.get("/sentry-debug") +async def trigger_error(): + """Sentry verification endpoint — triggers a test error.""" + division_by_zero = 1 / 0 + + if settings.DEBUG: @app.get("/debug/cors") async def debug_cors():