mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 16:57:11 +02:00
14 lines
277 B
Ruby
14 lines
277 B
Ruby
class Fluentd::SettingsController < ApplicationController
|
|
before_action :login_required
|
|
|
|
def show
|
|
render text: fluentd.config.to_s, content_type: "text/plain"
|
|
end
|
|
|
|
private
|
|
|
|
def fluentd # TODO
|
|
@fluentd ||= Fluentd.new(Rails.root + "tmp" + "fluentd")
|
|
end
|
|
end
|