2016-12-11 04:05:11 +00:00
|
|
|
# ~*~ coding: utf-8 ~*~
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2016-12-05 15:02:08 +00:00
|
|
|
from rest_framework.routers import DefaultRouter
|
2017-03-22 16:15:25 +00:00
|
|
|
from .. import api
|
2016-12-11 04:05:11 +00:00
|
|
|
|
2016-12-05 15:02:08 +00:00
|
|
|
|
2017-12-12 06:28:12 +00:00
|
|
|
app_name = "ops"
|
|
|
|
|
2017-03-22 16:15:25 +00:00
|
|
|
router = DefaultRouter()
|
|
|
|
router.register(r'v1/tasks', api.TaskViewSet, 'task')
|
2017-12-10 16:29:25 +00:00
|
|
|
router.register(r'v1/adhoc', api.AdHocViewSet, 'adhoc')
|
|
|
|
router.register(r'v1/history', api.AdHocRunHistorySet, 'history')
|
2017-03-22 16:15:25 +00:00
|
|
|
|
|
|
|
urlpatterns = []
|
|
|
|
|
|
|
|
urlpatterns += router.urls
|