travis-api/lib/travis/api/app/endpoint/branches.rb
2012-10-12 01:28:35 +02:00

17 lines
420 B
Ruby

require 'travis/api/app'
class Travis::Api::App
class Endpoint
class Branches < Endpoint
get '/' do
respond_with service(:branches, :find_all, params), type: :branches
end
# get '/:owner_name/:name/branches' do # v1
# get '/repos/:owner_name/:name/branches' do # v2
# respond_with service(:branches, :find_all, params), type: :branches
# end
end
end
end