Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F905002
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Aug 29, 7:09 PM
Size
599 B
Mime Type
text/x-diff
Expires
Sun, Aug 31, 7:09 PM (20 h, 29 m)
Engine
blob
Format
Raw Data
Handle
252385
Attached To
rARCHIVING archiving
View Options
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
Event Timeline
Log In to Comment