operations_project/apps/template/urls.py

11 lines
322 B
Python
Raw Normal View History

2025-05-20 15:57:10 +08:00
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import TemplateViewSet, TemplateCategoryViewSet
router = DefaultRouter()
router.register(r'categories', TemplateCategoryViewSet)
router.register(r'', TemplateViewSet)
urlpatterns = [
path('', include(router.urls)),
]