+ Telegram bot: sign up, sign in, notifications + Anonymous users can't see yuan_rate_commission * Only logged in customers can create/update orders * Customer info migrated to separate User model * Renamed legacy fields in serializers * Cleanup in API classes
24 lines
783 B
Python
24 lines
783 B
Python
from django.urls import path
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from store import views
|
|
|
|
router = DefaultRouter()
|
|
|
|
|
|
router.register(r'checklist', views.ChecklistAPI, basename='checklist')
|
|
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')
|
|
router.register(r'promo', views.PromoCodeAPI, basename='promo')
|
|
|
|
urlpatterns = [
|
|
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()),
|
|
|
|
] + router.urls
|