Files

31 lines
966 B
Ruby
Raw Permalink Normal View History

2015-10-02 21:05:03 +02:00
Rails.application.routes.draw do
2017-03-28 01:14:45 +02:00
devise_for :supporters
2018-10-05 18:42:33 +02:00
root to: 'supporters#new'
2016-04-21 21:30:37 +02:00
2017-04-11 08:06:32 +02:00
get "/pages/:page" => "pages#show"
2016-04-21 21:01:26 +02:00
namespace :admin do
get '/map', to: 'pages#map', as: :map
2017-04-14 11:34:01 +02:00
resources :publicities
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
2019-06-28 18:50:50 +02:00
#resources :greendays
2019-07-09 17:06:30 +02:00
#get '/initiative_text', to: 'pages#show', as: :initiative_text, page: 'initiative_text'
2017-04-11 11:24:19 +02:00
get '/terms_and_conditions', to: 'pages#show', as: :terms_and_conditions, page: 'terms_and_conditions'
2019-06-28 18:50:50 +02:00
#get '/donation', to: 'pages#show', as: :donation, page: 'donation'
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
2017-04-19 10:32:35 +02:00
scope '/:locale', locale: /de|it|fr/ do
2016-04-21 16:51:35 +02:00
get '/', to: 'supporters#new'
2017-04-21 19:33:57 +02:00
resources :supporters, only: [:new, :create]
2017-04-13 17:16:03 +02:00
resource :publicity
2016-04-21 16:51:35 +02:00
get '/thanks', to: 'pages#thanks', as: :thanks
2018-10-05 18:42:33 +02:00
resources :charges
2016-04-21 16:51:35 +02:00
end
2017-04-14 11:34:01 +02:00
mount RailsAdmin::Engine => '/admin', as: 'rails_admin'
2015-10-02 21:05:03 +02:00
end