From 745649248275a81aa233c7147b42635ea3e63a21 Mon Sep 17 00:00:00 2001 From: OG T Date: Fri, 27 Mar 2026 16:13:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(api):=20=E8=A8=BB=E5=86=8A=20Sentry=20Webho?= =?UTF-8?q?ok=20Router=20(Phase=2010.2.1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 sentry_webhook_v1 import - include_router 註冊 /api/v1/webhooks/sentry/* 路由 - 修復 Sentry Alert Rule → AWOOOI 連線 Co-Authored-By: Claude Opus 4.5 --- apps/api/src/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/api/src/main.py b/apps/api/src/main.py index 50d32af9a..3d1f6bda3 100644 --- a/apps/api/src/main.py +++ b/apps/api/src/main.py @@ -47,6 +47,9 @@ from src.api.v1 import incidents as incidents_v1 # Phase 6.4: Decision Proposal from src.api.v1 import metrics as metrics_v1 # Phase 7: Gold Metrics (真實血脈) from src.api.v1 import playbooks as playbooks_v1 # #7: Playbook 萃取 from src.api.v1 import proposals as proposals_v1 # Phase 6.4h: Proposals CRUD API +from src.api.v1 import ( + sentry_webhook as sentry_webhook_v1, # Phase 10.2.1: Sentry → Telegram +) from src.api.v1 import stats as stats_v1 # Phase 6.5: Statistics Analytics from src.api.v1 import telegram as telegram_v1 # Phase 5.4: Telegram Gateway from src.api.v1 import timeline as timeline_v1 @@ -402,6 +405,9 @@ app.include_router( app.include_router( errors_v1.router, prefix="/api/v1", tags=["Errors"] ) # #40: Sentry 錯誤 BFF API +app.include_router( + sentry_webhook_v1.router, prefix="/api/v1", tags=["Sentry Webhook"] +) # Phase 10.2.1: Sentry → Telegram app.include_router( proposals_router.router, tags=["Proposals (Legacy)"] ) # Phase 6.4g: lewooogo-brain (舊版)