mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-15 15:58:38 -05:00
Hook in the webhook receiver views into the urlconf
This commit is contained in:
@@ -137,6 +137,8 @@ v2_urls = [
|
||||
url(r'^activity_stream/', include(activity_stream_urls)),
|
||||
url(r'^workflow_approval_templates/', include(workflow_approval_template_urls)),
|
||||
url(r'^workflow_approvals/', include(workflow_approval_urls)),
|
||||
url(r'^(?P<model_kwarg>job_templates|workflow_job_templates)/(?P<pk>[0-9]+)/',
|
||||
include('awx.api.urls.webhooks')),
|
||||
]
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
from django.conf.urls import url
|
||||
|
||||
from awx.api.views import (
|
||||
GithubWebhookReceiver,
|
||||
GitlabWebhookReceiver,
|
||||
BitbucketWebhookReceiver,
|
||||
)
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^github/$', GithubWebhookReceiver.as_view(), name='webhook_receiver_github'),
|
||||
url(r'^gitlab/$', GitlabWebhookReceiver.as_view(), name='webhook_receiver_gitlab'),
|
||||
url(r'^bitbucket/$', BitbucketWebhookReceiver.as_view(), name='webhook_receiver_bitbucket'),
|
||||
]
|
||||
Reference in New Issue
Block a user