diff --git a/config/routes.rb b/config/routes.rb index 01b0e61..bb33723 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,9 @@ Rails.application.routes.draw do - root 'search#index' - get '/' => 'search#index', as: :search + root to: redirect { |path_params| "/leipzig" } + + scope ':body' do + get '/' => 'search#index', as: :search + end post '/auth/:provider/callback', to: 'sessions#create' get '/auth/browser_id', as: 'sign_in'