13 lines
353 B
Python
13 lines
353 B
Python
from django.urls import include, path
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from apps.payments.views import PaymentViewSet, payment_webhook
|
|
|
|
router = DefaultRouter()
|
|
router.register(r"", PaymentViewSet, basename="payment")
|
|
|
|
urlpatterns = [
|
|
path("webhook/", payment_webhook, name="payment-webhook"),
|
|
path("", include(router.urls)),
|
|
]
|