cnas/server/apps/laboratory/urls.py

11 lines
375 B
Python

from django.urls import path, include
from .views import DetectOrgViewSet,DetectOrgNoticeViewSet
from rest_framework import routers
router = routers.DefaultRouter()
router.register('detectorg', DetectOrgViewSet, basename="detectorg")
router.register('detectorgnotice', DetectOrgNoticeViewSet, basename="detectorgnotice")
urlpatterns = [
path('', include(router.urls))
]