mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
15 lines
520 B
Python
15 lines
520 B
Python
|
from django.urls import path, include
|
||
|
from subscriptions import views
|
||
|
from rest_framework.routers import DefaultRouter
|
||
|
|
||
|
router = DefaultRouter()
|
||
|
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")
|
||
|
urlpatterns = [
|
||
|
path('', include(router.urls)),
|
||
|
]
|