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-11 04:05:11 +00:00
|
|
|
api_router.register(r'host_alia', v1_api.HostAliaViewSet)
|
|
|
|
api_router.register(r'user_alia', v1_api.UserAliaViewSet)
|
|
|
|
api_router.register(r'cmd_alia', v1_api.CmdAliaViewSet)
|
|
|
|
api_router.register(r'runas_alia', v1_api.RunasAliaViewSet)
|
|
|
|
api_router.register(r'extra_conf', v1_api.ExtraconfViewSet)
|
|
|
|
api_router.register(r'privilege', v1_api.PrivilegeViewSet)
|
|
|
|
api_router.register(r'sudo', v1_api.SudoViewSet)
|
|
|
|
api_router.register(r'cron', v1_api.CronTableViewSet)
|
2016-12-05 15:02:08 +00:00
|
|
|
|
|
|
|
urlpatterns = api_router.urls
|