mirror of https://github.com/jumpserver/jumpserver
22 lines
428 B
Python
22 lines
428 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from django.urls import path
|
|
from rest_framework_bulk.routes import BulkRouter
|
|
|
|
from .. import api_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
|