+ 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
13 lines
354 B
Python
13 lines
354 B
Python
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from account import views
|
|
|
|
router = DefaultRouter()
|
|
router.register("users", views.UserViewSet)
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
path('auth/', include('djoser.urls.authtoken')),
|
|
path('auth/telegram/', views.TelegramLoginForm.as_view()),
|
|
] |