27 lines
687 B
Python
27 lines
687 B
Python
from django.urls import path
|
|
|
|
from plane.app.views import (
|
|
WebhookEndpoint,
|
|
WebhookLogsEndpoint,
|
|
WebhookSecretRegenerateEndpoint,
|
|
)
|
|
|
|
|
|
urlpatterns = [
|
|
path("workspaces/<str:slug>/webhooks/", WebhookEndpoint.as_view(), name="webhooks"),
|
|
path(
|
|
"workspaces/<str:slug>/webhooks/<uuid:pk>/",
|
|
WebhookEndpoint.as_view(),
|
|
name="webhooks",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/webhooks/<uuid:pk>/regenerate/",
|
|
WebhookSecretRegenerateEndpoint.as_view(),
|
|
name="webhooks",
|
|
),
|
|
path(
|
|
"workspaces/<str:slug>/webhook-logs/<uuid:webhook_id>/",
|
|
WebhookLogsEndpoint.as_view(),
|
|
name="webhooks",
|
|
),
|
|
]
|