fuck my life

This commit is contained in:
Slipstream 2025-05-09 17:34:41 -06:00
parent 06f726194d
commit 8af8c96210
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"),