blob: 4a366d7b6078d4991d9cbf7ab5a6b221951f0250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require_relative "../rest_base"
module ChefZero
module Endpoints
# GET /organizations/ORG/users/USER/keys/default
class OrganizationUserDefaultKeyEndpoint < RestBase
def get(request)
# 404 if it doesn't exist
get_data(request, request.rest_path[0..3])
# Just use the /users/USER/keys/default endpoint
request.rest_path = request.rest_path[2..-1]
ActorDefaultKeyEndpoint.new(server).get(request)
end
end
end
end
|