fluentd-ui/config/routes.rb
2014-05-29 14:18:46 +09:00

37 lines
694 B
Ruby

Rails.application.routes.draw do
root "fluentd#index" # TODO: change to dashboard
resources :fluentd do
resource :agent, only: [:show], module: :fluentd do
put "start"
put "stop"
put "restart"
get "log"
end
resource :setting, only: [:show, :edit, :update], module: :fluentd do
end
end
resource :sessions
resources :plugins do
collection do
get :installed
get :recommended
get :updated
patch :install
patch :uninstall
patch :upgrade
end
end
resource :user, only: [:show, :edit, :update]
get "misc" => "misc#show"
get "misc/information"
namespace :polling do
get "alerts"
end
end