fluentd-ui/app/controllers/api_controller.rb

6 lines
111 B
Ruby

class ApiController < ApplicationController
def tree
render json: Treeview.tree(params[:path])
end
end