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
|
2016-12-11 04:05:11 +00:00
|
|
|
from ops import api as v1_api
|
|
|
|
|
|
|
|
__all__ = ["urlpatterns"]
|
2016-12-05 15:02:08 +00:00
|
|
|
|
|
|
|
api_router = DefaultRouter()
|
2016-12-13 16:06:16 +00:00
|
|
|
api_router.register(r'v1/host_alia', v1_api.HostAliaViewSet)
|
|
|
|
api_router.register(r'v1/user_alia', v1_api.UserAliaViewSet)
|
|
|
|
api_router.register(r'v1/cmd_alia', v1_api.CmdAliaViewSet)
|
|
|
|
api_router.register(r'v1/runas_alia', v1_api.RunasAliaViewSet)
|
|
|
|
api_router.register(r'v1/extra_conf', v1_api.ExtraconfViewSet)
|
|
|
|
api_router.register(r'v1/privilege', v1_api.PrivilegeViewSet)
|
|
|
|
api_router.register(r'v1/sudo', v1_api.SudoViewSet)
|
|
|
|
api_router.register(r'v1/cron', v1_api.CronTableViewSet)
|
2016-12-19 06:07:21 +00:00
|
|
|
api_router.register(r'v1/task', v1_api.TaskViewSet)
|
2016-12-19 15:46:03 +00:00
|
|
|
api_router.register(r'v1/subtask', v1_api.SubTaskViewSet)
|
2016-12-05 15:02:08 +00:00
|
|
|
|
|
|
|
urlpatterns = api_router.urls
|