diff options
author | 2023-12-11 10:47:49 +0100 | |
---|---|---|
committer | 2023-12-11 10:47:49 +0100 | |
commit | 57accc142a31d9d906e1ca2cc1df6eb3328c4322 (patch) | |
tree | f8f90e99b8510cc1174dc00e1c3d6e73e92e7ca7 /pydis_site/apps/api/urls.py | |
parent | Merge pull request #1167 from python-discord/dependabot/pip/pre-commit-3.6.0 (diff) | |
parent | Implement 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.py | 12 |
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' + ), ) |