Project

General

Profile

Download (505 Bytes) Statistics
| Branch: | Tag: | Revision:
module Api
module V1
class AutosignController < V1::BaseController
before_filter :find_required_nested_object, :setup_proxy

api :GET, "/smart_proxies/smart_proxy_id/autosign", "List all autosign"

def index
autosign = @api.autosign
render :json => autosign
end

private

def setup_proxy
@api = ProxyAPI::Puppetca.new({:url => @nested_obj.url})
end

def allowed_nested_id
%w(smart_proxy_id)
end
end
end
end
(4-4/32)