16 lines
317 B
Python
16 lines
317 B
Python
"""
|
|
设备模块URL配置
|
|
"""
|
|
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from .views import DeviceViewSet
|
|
|
|
router = DefaultRouter()
|
|
router.register('devices', DeviceViewSet, basename='devices')
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
]
|
|
|
|
admin_urlpatterns = []
|