administrator dashboard for observing the Docker container pool
This commit is contained in:
17
app/controllers/admin/dashboard_controller.rb
Normal file
17
app/controllers/admin/dashboard_controller.rb
Normal file
@ -0,0 +1,17 @@
|
||||
module Admin
|
||||
class DashboardController < ApplicationController
|
||||
include DashboardHelper
|
||||
|
||||
def policy_class
|
||||
DashboardPolicy
|
||||
end
|
||||
|
||||
def show
|
||||
authorize(self)
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.json { render(json: dashboard_data) }
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user