2024-05-10 23:15:29 +08:00
|
|
|
from django.urls import path, include
|
|
|
|
from subscriptions import views
|
|
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
|
|
|
|
router = DefaultRouter()
|
2024-10-30 22:09:58 +08:00
|
|
|
router.register(r"plans", views.SubscriptionPlanViewset, basename="Subscription Plans")
|
|
|
|
router.register(r"self", views.UserSubscriptionViewset, basename="Self Subscriptions")
|
|
|
|
router.register(
|
|
|
|
r"user_group", views.UserGroupSubscriptionViewet, basename="Group Subscriptions"
|
|
|
|
)
|
2024-05-10 23:15:29 +08:00
|
|
|
urlpatterns = [
|
2024-10-30 22:09:58 +08:00
|
|
|
path("", include(router.urls)),
|
2024-05-10 23:15:29 +08:00
|
|
|
]
|