set all responses to json
This commit is contained in:
parent
cca12ce0c9
commit
e2e9572b50
|
@ -21,7 +21,9 @@ module Travis
|
|||
set :show_exceptions, :after_handler
|
||||
end
|
||||
|
||||
provides :json
|
||||
before do
|
||||
content_type :json
|
||||
end
|
||||
|
||||
get '/repositories' do
|
||||
respond_with Service::Repos.new(params).collection
|
||||
|
|
Loading…
Reference in New Issue
Block a user