volunteers/config/routes.rb

21 lines
585 B
Ruby
Raw Normal View History

2022-11-21 12:10:04 +02:00
Rails.application.routes.draw do
2023-01-11 18:48:06 +02:00
resources :stories
2023-01-20 09:39:26 +02:00
devise_for :members ,controllers: { registrations: 'registrations' }
devise_scope :member do
get "/members/edit_email" , to: "registrations#edit_email"
end
2022-12-21 17:30:29 +02:00
resources :members
2022-12-31 22:01:51 +02:00
mount Thredded::Engine => '/forum'
2022-11-21 12:10:04 +02:00
2023-01-21 22:47:59 +02:00
mount Merged::Engine => "/merged" unless Rails.env.production?
2022-11-29 01:13:46 +02:00
2023-01-21 22:47:59 +02:00
post "/form" , to: "merged/form#post" , as: :post_form
2023-01-08 23:49:20 +02:00
get "/news/:id" , to: "merged/view#page" , id: :id , as: :view_blog
get ":id" , to: "merged/view#page" , id: :id , as: :view_page
2023-01-08 14:59:10 +02:00
root "merged/view#page" , id: 'index'
2022-11-21 12:10:04 +02:00
end