fuck my life
This commit is contained in:
parent
06f726194d
commit
8af8c96210
@ -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
|
||||
|
@ -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"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user