2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/app/controllers/admin/dashboard_controller.rb

12 lines
265 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_all)
end
def problems
render_json_dump({problems: AdminDashboardData.fetch_problems})
end
end