19 lines
605 B
Python
19 lines
605 B
Python
from django.urls import include, path
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from engine.payments.views import CallbackAPIView, DepositView, LimitsAPIView
|
|
from engine.payments.viewsets import TransactionViewSet
|
|
|
|
app_name = "payments"
|
|
|
|
payment_router = DefaultRouter()
|
|
payment_router.register(
|
|
prefix=r"transactions", viewset=TransactionViewSet, basename="transactions"
|
|
)
|
|
|
|
urlpatterns = [
|
|
path(r"", include(payment_router.urls)),
|
|
path(r"deposit/", DepositView.as_view()),
|
|
path(r"limits/", LimitsAPIView.as_view()),
|
|
path(r"<str:uuid>/callback/", CallbackAPIView.as_view()),
|
|
]
|