mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-15 18:57:10 +02:00
37 lines
694 B
Ruby
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
|