<gh_stars>1-10
# coding=utf-8

from __future__ import absolute_import

from wecubek8s.apps.plugin import controller


def add_routes(api):
    api.add_route('/kubernetes/v1/clusters/apply', controller.Cluster(action='apply'))
    api.add_route('/kubernetes/v1/clusters/destroy', controller.Cluster(action='destroy'))

    api.add_route('/kubernetes/v1/deployments/apply', controller.Deployment(action='apply'))
    api.add_route('/kubernetes/v1/deployments/destroy', controller.Deployment(action='destroy'))
    api.add_route('/kubernetes/v1/services/apply', controller.Service(action='apply'))
    api.add_route('/kubernetes/v1/services/destroy', controller.Service(action='destroy'))

# coding=utf-8

from __future__ import absolute_import

from wecubek8s.apps.plugin import controller


def add_routes(api):
    api.add_route('/kubernetes/v1/clusters/apply', controller.Cluster(action='apply'))
    api.add_route('/kubernetes/v1/clusters/destroy', controller.Cluster(action='destroy'))

    api.add_route('/kubernetes/v1/deployments/apply', controller.Deployment(action='apply'))
    api.add_route('/kubernetes/v1/deployments/destroy', controller.Deployment(action='destroy'))
    api.add_route('/kubernetes/v1/services/apply', controller.Service(action='apply'))
    api.add_route('/kubernetes/v1/services/destroy', controller.Service(action='destroy'))
# coding=utf-8