27 lines
815 B
Python
27 lines
815 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')
|
|
router.register(r'gifts', views.GiftAPI, basename='gifts')
|
|
router.register(r'poizon', views.PoizonAPI, basename='poizon')
|
|
|
|
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
|