schon/payments/urls.py
Egor fureunoir Gorbunov 856f2ff516 Features: 1) Add app_name attribute in multiple urls.py files across apps to support namespacing;
Fixes: 1) Simplify Prometheus and GraphQL path definitions in `evibes/api_urls.py`;

Extra: 1) Add line breaks across multiple files for improved code readability.
2025-06-29 20:03:33 +03:00

16 lines
537 B
Python

from django.urls import include, path
from rest_framework.routers import DefaultRouter
from payments.views import CallbackAPIView, DepositView
from 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"<str:uuid>/callback/<str:gateway>/", CallbackAPIView.as_view()),
]