mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
400 B
18 lines
400 B
# ~*~ coding: utf-8 ~*~
|
|
from __future__ import unicode_literals
|
|
|
|
from rest_framework.routers import DefaultRouter
|
|
from .. import api
|
|
|
|
|
|
app_name = "ops"
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'v1/tasks', api.TaskViewSet, 'task')
|
|
router.register(r'v1/adhoc', api.AdHocViewSet, 'adhoc')
|
|
router.register(r'v1/history', api.AdHocRunHistorySet, 'history')
|
|
|
|
urlpatterns = []
|
|
|
|
urlpatterns += router.urls
|