residency/config/routes.rb

21 lines
585 B
Ruby
Raw Normal View History

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