2024-10-31 00:33:13 +08:00
|
|
|
from django.urls import include, path
|
2024-05-10 23:15:29 +08:00
|
|
|
from rest_framework.routers import DefaultRouter
|
2024-10-31 00:33:13 +08:00
|
|
|
from subscriptions import views
|
2024-05-10 23:15:29 +08:00
|
|
|
|
|
|
|
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
|
|
|
]
|