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,14 +6,15 @@ 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
|
||||||
|
resource :agent, only: [] do
|
||||||
put "start"
|
put "start"
|
||||||
put "stop"
|
put "stop"
|
||||||
put "restart"
|
put "restart"
|
||||||
get "log_tail"
|
get "log_tail"
|
||||||
end
|
end
|
||||||
|
|
||||||
resource :setting, only: [:show, :edit, :update], module: :fluentd do
|
resource :setting, only: [:show, :edit, :update] do
|
||||||
get "source_and_output"
|
get "source_and_output"
|
||||||
|
|
||||||
resource :in_tail, only: ["show"], module: :settings, controller: :in_tail do
|
resource :in_tail, only: ["show"], module: :settings, controller: :in_tail do
|
||||||
@ -44,6 +45,7 @@ Rails.application.routes.draw do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
resource :sessions
|
resource :sessions
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user