Sha256: bccd1038f4b8b07818dd839ee7731938545c0c07e20219fac28dc08595e5b331

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

# frozen_string_literal: true

KPM::Engine.routes.draw do
  root to: 'nodes_info#index'

  resources :nodes_info, :only => [:index]
  resources :plugins, :only => [:index]

  scope '/nodes_info' do
    match '/refresh' => 'nodes_info#refresh', :via => :get, :as => 'nodes_info_refresh'
    match '/plugin/install' => 'nodes_info#install_plugin', :via => :post, :as => 'plugin_install'
    match '/plugin/install_from_fs' => 'nodes_info#install_plugin_from_fs', :via => :post, :as => 'plugin_install_from_fs'
    match '/plugin/uninstall' => 'nodes_info#uninstall_plugin', :via => :post, :as => 'plugin_uninstall'
    match '/plugin/start' => 'nodes_info#start_plugin', :via => :post, :as => 'plugin_start'
    match '/plugin/stop' => 'nodes_info#stop_plugin', :via => :post, :as => 'plugin_stop'
    match '/plugin/restart' => 'nodes_info#restart_plugin', :via => :post, :as => 'plugin_restart'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
killbill-kpm-ui-2.0.1 config/routes.rb
killbill-kpm-ui-2.0.0 config/routes.rb