kwork-poizonstore/store/urls.py
phzhik 4ed1a74a16 + time_to_buy & buy_time_remaining fields
+ Category: hierarchy, removed slugs & added comission per category
* Promocode value in rubles instead of percentage
* Cleanup in GlobalSettings routes
2023-08-18 16:22:32 +04:00

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