1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| from django.urls import include, path
|
| from . import api
|
| app_name = 'webhooks'
|
| _api_urlpatterns = [
| # CRUD
| path('', api.WebhookListAPI.as_view(), name='webhook-list'),
| path('<int:pk>/', api.WebhookAPI.as_view(), name='webhook-detail'),
| path('info/', api.WebhookInfoAPI.as_view(), name='webhook-info'),
| ]
|
| urlpatterns = [
| path('api/webhooks/', include((_api_urlpatterns, app_name), namespace='api')),
| ]
|
|