From e2e9572b500249e5150308cc5b65e71260d5e700 Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Mon, 23 Jul 2012 14:18:42 +0200 Subject: [PATCH] set all responses to json --- lib/travis/api/app.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/travis/api/app.rb b/lib/travis/api/app.rb index 3e37527a..ce14ac68 100644 --- a/lib/travis/api/app.rb +++ b/lib/travis/api/app.rb @@ -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