diff --git a/app/api/repp/api.rb b/app/api/repp/api.rb index b1b3d6b2b..af6864cfa 100644 --- a/app/api/repp/api.rb +++ b/app/api/repp/api.rb @@ -1,5 +1,5 @@ module Repp - class Api < Grape::API + class API < Grape::API format :json prefix :repp diff --git a/config/routes.rb b/config/routes.rb index bfaaa7d88..1c03129db 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -37,7 +37,7 @@ Rails.application.routes.draw do get 'error/:command', to: 'errors#error' end - mount Repp::Api => '/' + mount Repp::API => '/' namespace :repp do namespace :v1 do