jumpserver/apps/ops/urls/api_urls.py

14 lines
260 B
Python
Raw Normal View History

# ~*~ coding: utf-8 ~*~
from __future__ import unicode_literals
from rest_framework.routers import DefaultRouter
from .. import api
router = DefaultRouter()
router.register(r'v1/tasks', api.TaskViewSet, 'task')
urlpatterns = []
urlpatterns += router.urls