mirror of
https://github.com/discourse/discourse.git
synced 2025-01-23 04:43:00 +08:00
11 lines
326 B
Ruby
11 lines
326 B
Ruby
|
class Admin::DashboardController < Admin::AdminController
|
||
|
|
||
|
def index
|
||
|
render_json_dump({
|
||
|
reports: ['visits', 'signups', 'topics', 'posts', 'total_users', 'flags'].map { |type| Report.find(type) }
|
||
|
}.merge(
|
||
|
SiteSetting.version_checks? ? {version_check: DiscourseUpdates.check_version} : {}
|
||
|
))
|
||
|
end
|
||
|
|
||
|
end
|