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