mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
e655e1863f
Co-Authored-By: Kris <shout@k-ris.com>
20 lines
431 B
Ruby
20 lines
431 B
Ruby
class Admin::DashboardNextController < Admin::AdminController
|
|
def index
|
|
data = AdminDashboardNextIndexData.fetch_cached_stats
|
|
|
|
if SiteSetting.version_checks?
|
|
data.merge!(version_check: DiscourseUpdates.check_version.as_json)
|
|
end
|
|
|
|
render json: data
|
|
end
|
|
|
|
def moderation; end
|
|
def security; end
|
|
def reports; end
|
|
|
|
def general
|
|
render json: AdminDashboardNextGeneralData.fetch_cached_stats
|
|
end
|
|
end
|