simplify routes

This commit is contained in:
Joerg Reichert 2016-04-10 14:48:04 +02:00
parent 2934bea7db
commit 98f05ca746
4 changed files with 17 additions and 33 deletions

View file

@ -1,14 +1,9 @@
Rails.application.routes.draw do
root to: redirect { |path_params| "/leipzig" }
scope ':body' do
get '/' => 'search#index', as: :search
end
# root to: redirect { |path_params| "/leipzig" }
get '/' => 'search#index', as: :search
post '/import' => 'import#new_papers_callback'
resource :session, only: [:create, :destroy]
# Example of regular route:
# get 'products/:id' => 'catalog#view'