diff --git a/app/api/repp/api.rb b/app/api/repp/api.rb index af6864cfa..b1b3d6b2b 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 1c03129db..bfaaa7d88 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