"""
URL routing для referrals API.
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    ReferralViewSet,
    BonusAccountViewSet,
    PointsViewSet,
    PromoCodeViewSet
)

router = DefaultRouter()
router.register(r'referrals', ReferralViewSet, basename='referral')
router.register(r'bonus', BonusAccountViewSet, basename='bonus')
router.register(r'points', PointsViewSet, basename='points')
router.register(r'promo', PromoCodeViewSet, basename='promo')

urlpatterns = [
    path('', include(router.urls)),
]

