Bin
2025-12-16 9e0b2ba2c317b1a86212f24cbae3195ad1f3dbfa
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')),
]