1234567891011121314 |
- # coding=utf-8
- from django.urls import path
- from rest_framework.routers import SimpleRouter
- from .views import *
- urlpatterns = [
- path('<int:pk>/export/', ExamPaperViewSet.as_view({'get': 'export', })),
- ]
- router = SimpleRouter()
- router.register(r'', ExamPaperViewSet)
- urlpatterns += router.urls
|