mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
12 lines
No EOL
265 B
Ruby
12 lines
No EOL
265 B
Ruby
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 |