discourse/app/controllers/admin/dashboard_controller.rb

9 lines
172 B
Ruby
Raw Normal View History

class Admin::DashboardController < Admin::AdminController
caches_action :index, expires_in: 1.hour
def index
render_json_dump(AdminDashboardData.fetch)
end
end