21 lines
404 B
Ruby
21 lines
404 B
Ruby
require 'travis/api/app'
|
|
|
|
class Travis::Api::App
|
|
class Endpoint
|
|
class Builds < Endpoint
|
|
get '/' do
|
|
respond_with all(params).run
|
|
end
|
|
|
|
# get '/:owner_name/:name/builds' do # v1
|
|
# get '/repos/:owner_name/:name/builds' do # v2
|
|
# respond_with all(params).run
|
|
# end
|
|
|
|
get '/:id' do
|
|
respond_with one(params).run
|
|
end
|
|
end
|
|
end
|
|
end
|