blob: 94719f31bdfafb47df4a739a3f42d155322ded33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require_relative "../rest_base"
require_relative "actor_keys_endpoint"
module ChefZero
module Endpoints
# GET /organizations/ORG/users/USER/keys/NAME
class OrganizationUserKeyEndpoint < RestBase
def get(request)
# 404 if not a member of the org
get_data(request, request.rest_path[0..3])
# Just use the /users/USER/keys endpoint
request.rest_path = request.rest_path[2..-1]
ActorKeyEndpoint.new(server).get(request)
end
end
end
end
|