aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/urls.py
diff options
context:
space:
mode:
authorGravatar jchristgit <[email protected]>2023-12-11 10:47:49 +0100
committerGravatar GitHub <[email protected]>2023-12-11 10:47:49 +0100
commit57accc142a31d9d906e1ca2cc1df6eb3328c4322 (patch)
treef8f90e99b8510cc1174dc00e1c3d6e73e92e7ca7 /pydis_site/apps/api/urls.py
parentMerge pull request #1167 from python-discord/dependabot/pip/pre-commit-3.6.0 (diff)
parentImplement the github-filter worker in the API (diff)
Merge pull request #1164 from python-discord/the-pythondiscord-workers-serverless-webscale-platform
Implement the github-filter worker in the API
Diffstat (limited to 'pydis_site/apps/api/urls.py')
-rw-r--r--pydis_site/apps/api/urls.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/pydis_site/apps/api/urls.py b/pydis_site/apps/api/urls.py
index f872ba92..80d4edc2 100644
--- a/pydis_site/apps/api/urls.py
+++ b/pydis_site/apps/api/urls.py
@@ -1,7 +1,12 @@
from django.urls import include, path
from rest_framework.routers import DefaultRouter
-from .views import GitHubArtifactsView, HealthcheckView, RulesView
+from .views import (
+ GitHubArtifactsView,
+ GitHubWebhookFilterView,
+ HealthcheckView,
+ RulesView,
+)
from .viewsets import (
AocAccountLinkViewSet,
AocCompletionistBlockViewSet,
@@ -101,4 +106,9 @@ urlpatterns = (
GitHubArtifactsView.as_view(),
name="github-artifacts"
),
+ path(
+ 'github/webhook-filter/<str:webhook_id>/<str:webhook_token>',
+ GitHubWebhookFilterView.as_view(),
+ name='github-webhook-filter'
+ ),
)