diff --git a/app/controllers/api/v1/clients_controller.rb b/app/controllers/api/v1/clients_controller.rb index dd2e790..4e2ff08 100644 --- a/app/controllers/api/v1/clients_controller.rb +++ b/app/controllers/api/v1/clients_controller.rb @@ -1,10 +1,17 @@ class Api::V1::ClientsController < Api::BaseController before_action :require_api_login # GET /api/clients def index hosts = current_api_user.hosts.in_bacula api_render(hosts) end + + # GET /api/clients/1 + def show + host = current_api_user.hosts.in_bacula.find(params[:id]) + + api_render(host) + end end