+ Category: hierarchy, removed slugs & added comission per category * Promocode value in rubles instead of percentage * Cleanup in GlobalSettings routes
25 lines
693 B
Python
25 lines
693 B
Python
from django.urls import path
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from store import views
|
|
|
|
router = DefaultRouter()
|
|
|
|
|
|
router.register(r'statistics', views.StatisticsAPI, basename='statistics')
|
|
router.register(r'cdek', views.CDEKAPI, basename='cdek')
|
|
|
|
urlpatterns = [
|
|
path("checklist/", views.ChecklistAPI.as_view()),
|
|
path("checklist/<str:id>", views.ChecklistAPI.as_view()),
|
|
|
|
path("category/", views.CategoryAPI.as_view()),
|
|
path("category/<int:id>", views.CategoryAPI.as_view()),
|
|
|
|
path("payment/", views.PaymentMethodsAPI.as_view()),
|
|
path("settings/", views.GlobalSettingsAPI.as_view()),
|
|
|
|
path("promo/", views.PromoCodeAPI.as_view()),
|
|
|
|
] + router.urls
|