aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/urls.py
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2022-10-07 16:14:11 +0300
committerGravatar mbaruh <[email protected]>2022-10-07 16:14:11 +0300
commita663969c8d94b6174dd872501a32e4a428fa77d4 (patch)
tree9a414ff80233047ef4d20d1d7cb17c82b45e49a4 /pydis_site/apps/api/urls.py
parentBring back enabled categories (diff)
parentMerge pull request #776 from python-discord/dependabot/pip/sentry-sdk-1.9.10 (diff)
Merge branch 'main' into new-filter-schema
Diffstat (limited to 'pydis_site/apps/api/urls.py')
-rw-r--r--pydis_site/apps/api/urls.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pydis_site/apps/api/urls.py b/pydis_site/apps/api/urls.py
index d5f6bc56..f872ba92 100644
--- a/pydis_site/apps/api/urls.py
+++ b/pydis_site/apps/api/urls.py
@@ -1,7 +1,7 @@
from django.urls import include, path
from rest_framework.routers import DefaultRouter
-from .views import HealthcheckView, RulesView
+from .views import GitHubArtifactsView, HealthcheckView, RulesView
from .viewsets import (
AocAccountLinkViewSet,
AocCompletionistBlockViewSet,
@@ -95,5 +95,10 @@ urlpatterns = (
# from django_hosts.resolvers import reverse
path('bot/', include((bot_router.urls, 'api'), namespace='bot')),
path('healthcheck', HealthcheckView.as_view(), name='healthcheck'),
- path('rules', RulesView.as_view(), name='rules')
+ path('rules', RulesView.as_view(), name='rules'),
+ path(
+ 'github/artifact/<str:owner>/<str:repo>/<str:sha>/<str:action_name>/<str:artifact_name>',
+ GitHubArtifactsView.as_view(),
+ name="github-artifacts"
+ ),
)