16 lines
258 B
Ruby
16 lines
258 B
Ruby
require 'travis/api/app'
|
|
|
|
class Travis::Api::App
|
|
class Endpoint
|
|
class Workers < Endpoint
|
|
get '/' do
|
|
respond_with all(params).run
|
|
end
|
|
|
|
get '/:id' do
|
|
respond_with one(params).run || not_found
|
|
end
|
|
end
|
|
end
|
|
end
|