mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 10:08:20 -05:00
12 lines
No EOL
342 B
Ruby
12 lines
No EOL
342 B
Ruby
class Admin::DashboardController < Admin::AdminController
|
|
|
|
def index
|
|
render_json_dump({
|
|
reports: ['visits', 'signups', 'topics', 'posts', 'flags'].map { |type| Report.find(type) },
|
|
total_users: User.count
|
|
}.merge(
|
|
SiteSetting.version_checks? ? {version_check: DiscourseUpdates.check_version} : {}
|
|
))
|
|
end
|
|
|
|
end |