mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-05-11 05:07:13 +00:00
* [Update] 服务账号注册 * [Update] 修改settings配置 * [Update] 修改settings * [Update] 整理terminal api * [Update] 修改terminal api * [Update] 修改terminal注册机制
21 lines
414 B
Python
21 lines
414 B
Python
#!/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')
|
|
router.register(r'terminal-registrations', api.TerminalRegistrationViewSet, 'terminal-registration')
|
|
|
|
|
|
urlpatterns = [
|
|
]
|
|
|
|
urlpatterns += router.urls
|