Files
codeocean/app/controllers/admin/dashboard_controller.rb
2021-05-14 22:03:06 +02:00

28 lines
568 B
Ruby

# frozen_string_literal: true
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
def dump_docker
authorize(self)
respond_to do |format|
format.html { render(json: DockerContainerPool.dump_info) }
format.json { render(json: DockerContainerPool.dump_info) }
end
end
end
end