mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-18 12:17:05 +02:00
61 lines
1.2 KiB
Ruby
61 lines
1.2 KiB
Ruby
Rails.application.routes.draw do
|
|
root "fluentd#show" # TODO: change to dashboard
|
|
|
|
resource :fluentd, controller: :fluentd do
|
|
get "log"
|
|
resource :agent, only: [], module: :fluentd do
|
|
put "start"
|
|
put "stop"
|
|
put "restart"
|
|
get "log_tail"
|
|
end
|
|
resource :setting, only: [:show, :edit, :update], module: :fluentd do
|
|
get "in_tail"
|
|
post "in_tail_after_file_choose"
|
|
post "in_tail_after_format"
|
|
post "in_tail_confirm"
|
|
post "in_tail_finish"
|
|
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
|
|
|
|
namespace :tutorials do
|
|
get "/" => :index
|
|
get "chapter1"
|
|
get "chapter2"
|
|
get "chapter3"
|
|
get "chapter4"
|
|
get "chapter5"
|
|
get "log_tail"
|
|
post "request_fluentd"
|
|
end
|
|
|
|
namespace :api do
|
|
get "tree"
|
|
get "file_preview"
|
|
post "regexp_preview"
|
|
post "grok_to_regexp"
|
|
end
|
|
end
|