mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 01:07:09 +02:00
Tiny DRY routes
This commit is contained in:
parent
0dd371f1d9
commit
1d2059f04c
@ -6,41 +6,43 @@ Rails.application.routes.draw do
|
|||||||
get "raw_log"
|
get "raw_log"
|
||||||
get "errors"
|
get "errors"
|
||||||
|
|
||||||
resource :agent, only: [], module: :fluentd do
|
scope module: :fluentd do
|
||||||
put "start"
|
resource :agent, only: [] do
|
||||||
put "stop"
|
put "start"
|
||||||
put "restart"
|
put "stop"
|
||||||
get "log_tail"
|
put "restart"
|
||||||
end
|
get "log_tail"
|
||||||
|
|
||||||
resource :setting, only: [:show, :edit, :update], module: :fluentd do
|
|
||||||
get "source_and_output"
|
|
||||||
|
|
||||||
resource :in_tail, only: ["show"], module: :settings, controller: :in_tail do
|
|
||||||
post "after_file_choose"
|
|
||||||
post "after_format"
|
|
||||||
post "confirm"
|
|
||||||
post "finish"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
resource :in_syslog, only: ["show"], module: :settings, controller: :in_syslog do
|
resource :setting, only: [:show, :edit, :update] do
|
||||||
post "finish"
|
get "source_and_output"
|
||||||
end
|
|
||||||
|
|
||||||
resource :out_mongo, only: ["show"], module: :settings, controller: :out_mongo do
|
resource :in_tail, only: ["show"], module: :settings, controller: :in_tail do
|
||||||
post "finish"
|
post "after_file_choose"
|
||||||
end
|
post "after_format"
|
||||||
|
post "confirm"
|
||||||
|
post "finish"
|
||||||
|
end
|
||||||
|
|
||||||
resource :out_td, only: ["show"], module: :settings, controller: :out_td do
|
resource :in_syslog, only: ["show"], module: :settings, controller: :in_syslog do
|
||||||
post "finish"
|
post "finish"
|
||||||
end
|
end
|
||||||
|
|
||||||
resource :out_s3, only: ["show"], module: :settings, controller: :out_s3 do
|
resource :out_mongo, only: ["show"], module: :settings, controller: :out_mongo do
|
||||||
post "finish"
|
post "finish"
|
||||||
end
|
end
|
||||||
|
|
||||||
resource :out_forward, only: ["show"], module: :settings, controller: :out_forward do
|
resource :out_td, only: ["show"], module: :settings, controller: :out_td do
|
||||||
post "finish"
|
post "finish"
|
||||||
|
end
|
||||||
|
|
||||||
|
resource :out_s3, only: ["show"], module: :settings, controller: :out_s3 do
|
||||||
|
post "finish"
|
||||||
|
end
|
||||||
|
|
||||||
|
resource :out_forward, only: ["show"], module: :settings, controller: :out_forward do
|
||||||
|
post "finish"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user