return errors in json format

This commit is contained in:
Nihad Abbasov 2012-06-29 03:52:20 -07:00
parent 0d67f209fc
commit 1d2c981860
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ Dir["#{Rails.root}/lib/api/*.rb"].each {|file| require file}
module Gitlab
class API < Grape::API
format :json
error_format :json
helpers APIHelpers
mount Users