mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 13:38:49 +08:00
0e414d0890
This commit also improves how data is loaded sync and async
10 lines
251 B
Ruby
10 lines
251 B
Ruby
require 'disk_space'
|
|
|
|
class Admin::DashboardNextController < Admin::AdminController
|
|
def index
|
|
dashboard_data = AdminDashboardNextData.fetch_stats
|
|
dashboard_data[:disk_space] = DiskSpace.cached_stats
|
|
render json: dashboard_data
|
|
end
|
|
end
|