From 8af8c96210c79ef993216b7b6afa38a336311131 Mon Sep 17 00:00:00 2001 From: Slipstream Date: Fri, 9 May 2025 17:34:41 -0600 Subject: [PATCH] fuck my life --- api_integration.py | 2 +- api_service/webhook_endpoints.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api_integration.py b/api_integration.py index ef612d3..9fdf93e 100644 --- a/api_integration.py +++ b/api_integration.py @@ -6,7 +6,7 @@ import sys import json # Add the api_service directory to the Python path -sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'api_service')) +sys.path.append(os.path.join(os.path.dirname(__file__), 'api_service')) # Import the API client and models from discord_client import ApiClient diff --git a/api_service/webhook_endpoints.py b/api_service/webhook_endpoints.py index eb9c9fb..8a26c52 100644 --- a/api_service/webhook_endpoints.py +++ b/api_service/webhook_endpoints.py @@ -168,7 +168,7 @@ def format_gitlab_embed(payload: Dict[str, Any], repo_url: str) -> discord.Embed return embed -@router.post("/webhook/github/{repo_db_id}") +@router.post("/github/{repo_db_id}") async def webhook_github( request: Request, repo_db_id: int = Path(..., description="The database ID of the monitored repository"), @@ -272,7 +272,7 @@ async def webhook_github( return {"status": "error", "message": f"Webhook received, but notification failed: {send_result.get('message')}"} -@router.post("/webhook/gitlab/{repo_db_id}") +@router.post("/gitlab/{repo_db_id}") async def webhook_gitlab( request: Request, repo_db_id: int = Path(..., description="The database ID of the monitored repository"),