lty/qy_lty/card/urls.py
pmc 55ca2cbdaf
All checks were successful
Build and Deploy LTY / build-and-deploy (push) Successful in 47m12s
feat: update card views/serializers and admin sidebar
- Add new card API endpoints and serializers
- Update sidebar navigation
- Update claude settings permissions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 11:35:11 +08:00

17 lines
664 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/clothing/', views.MobileClothingListView.as_view(), name='mobile-clothing-list'),
]