• 老广's avatar
    Bugfix (#2350) · 2a0e68c5
    老广 authored
    * [Update] 权限页面增加过滤规则
    
    * [Update] 修改terminal注册,更新以后使用api完成
    
    * [Update] 修改terminal注册,更新以后使用api完成
    
    * [Update] 修改更新注册逻辑
    2a0e68c5
api_urls_v2.py 427 Bytes
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#

from django.urls import path
from rest_framework_bulk.routes import BulkRouter

from ..api import v2 as api

app_name = 'terminal'

router = BulkRouter()
router.register(r'terminal', api.TerminalViewSet, 'terminal')


urlpatterns = [
    path('terminal-registrations/', api.TerminalRegistrationApi.as_view(),
         name='terminal-registration')
]

urlpatterns += router.urls