lty/qy_lty/card/urls.py
pmc c0fe1f502b
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 1h5m35s
feat: update card models, admin pages, and add migrations
- Update card models, serializers, views and URLs
- Update dances, songs, users admin pages and API modules
- Add card migrations (merge furniture into decoration)
- Update middleware and settings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 16:38:48 +08:00

17 lines
676 B
Python

from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views
router = DefaultRouter()
router.register(r'templates', views.CardTemplateViewSet)
router.register(r'batches', views.CardBatchViewSet)
router.register(r'cards', views.CardViewSet, basename='card')
urlpatterns = [
path('', include(router.urls)),
path('user/cards/', views.UserCardListView.as_view(), name='user-cards'),
path('category/<str:category>/', views.CategoryCardTemplateListView.as_view(), name='category-templates'),
path('mobile/products.json', views.MobileProductsDownloadView.as_view(), name='mobile-products-download'),
]