mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
simplify routes
This commit is contained in:
parent
2934bea7db
commit
98f05ca746
4 changed files with 17 additions and 33 deletions
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue