Redirect to default body ‘/leipzig’ #21

This commit is contained in:
Andreas Haller 2015-05-19 08:41:39 +02:00
parent be19256457
commit 72b3fc5672

View file

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