2015-10-02 21:05:03 +02:00
|
|
|
Rails.application.routes.draw do
|
2017-03-28 01:14:45 +02:00
|
|
|
devise_for :supporters
|
2017-03-31 14:42:37 +02:00
|
|
|
root to: 'supporters#new'
|
2016-04-21 21:30:37 +02:00
|
|
|
|
2017-04-11 08:06:32 +02:00
|
|
|
mount RailsAdmin::Engine => '/admin', as: 'rails_admin'
|
|
|
|
|
|
|
|
|
|
get "/pages/:page" => "pages#show"
|
|
|
|
|
|
2016-04-21 21:01:26 +02:00
|
|
|
namespace :admin do
|
|
|
|
|
get '/map', to: 'pages#map', as: :map
|
2016-04-22 11:10:40 +02:00
|
|
|
# resources :supporters, only: :index
|
2016-04-21 21:01:26 +02:00
|
|
|
end
|
2017-04-11 08:06:32 +02:00
|
|
|
|
|
|
|
|
localized do
|
|
|
|
|
get '/initiative_text', to: 'pages#show', as: :initiative_text, page: 'initiative_text'
|
2017-04-11 08:46:21 +02:00
|
|
|
get '/arguments', to: 'pages#show', as: :arguments, page: 'arguments'
|
2017-04-11 08:06:32 +02:00
|
|
|
end
|
2016-04-22 11:10:40 +02:00
|
|
|
|
2016-04-21 21:29:52 +02:00
|
|
|
get '/cities_autocomplete', to: 'cities_autocomplete#index', as: :cities_autocomplete
|
2016-04-21 16:53:30 +02:00
|
|
|
scope '/:locale' do
|
2016-04-21 16:51:35 +02:00
|
|
|
get '/', to: 'supporters#new'
|
|
|
|
|
resources :supporters
|
|
|
|
|
get '/thanks', to: 'pages#thanks', as: :thanks
|
2016-05-19 21:12:59 +02:00
|
|
|
get '/spenden', to: 'pages#spenden', as: :spenden
|
2017-02-26 17:46:55 +01:00
|
|
|
get '/terms_and_conditions', to: 'pages#terms_and_conditions', as: :terms_and_conditions
|
2016-04-21 16:51:35 +02:00
|
|
|
end
|
2015-10-02 21:05:03 +02:00
|
|
|
end
|