2022-06-20 19:48:08 +00:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
|
|
|
|
|
|
|
# Defines the root path route ("/")
|
|
|
|
# root "articles#index"
|
2022-06-25 22:45:47 +00:00
|
|
|
#
|
|
|
|
root to: redirect('/members')
|
2022-06-25 12:48:46 +00:00
|
|
|
|
|
|
|
resources :members do
|
2022-06-25 20:27:02 +00:00
|
|
|
member do
|
|
|
|
get :delete
|
|
|
|
end
|
2022-06-25 12:48:46 +00:00
|
|
|
resources :contributions, only: [:new, :create]
|
|
|
|
end
|
|
|
|
|
2022-06-25 20:27:02 +00:00
|
|
|
resources :contributions, only: [:edit, :update, :destroy] do
|
|
|
|
member do
|
|
|
|
get :delete
|
|
|
|
end
|
|
|
|
end
|
2022-06-25 22:45:47 +00:00
|
|
|
|
2022-07-16 10:27:43 +00:00
|
|
|
resources :notifications, only: [] do
|
|
|
|
member do
|
|
|
|
post :deliver
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2022-06-25 22:45:47 +00:00
|
|
|
resource :board, only: [:edit, :update]
|
2022-07-16 10:27:43 +00:00
|
|
|
resource :letters, only: [:create]
|
2022-06-20 19:48:08 +00:00
|
|
|
end
|