37 lines
742 B
Ruby
37 lines
742 B
Ruby
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"
|
|
#
|
|
root to: redirect('/members')
|
|
|
|
resources :members do
|
|
member do
|
|
get :delete
|
|
end
|
|
resources :contributions, only: [:new, :create]
|
|
end
|
|
|
|
resources :contributions, only: [:index, :edit, :update, :destroy] do
|
|
collection do
|
|
get :due
|
|
end
|
|
|
|
member do
|
|
get :delete
|
|
end
|
|
end
|
|
|
|
resources :notifications, only: [:index] do
|
|
member do
|
|
post :deliver
|
|
end
|
|
end
|
|
|
|
resource :board, only: [:edit, :update]
|
|
resource :letters, only: [:create]
|
|
|
|
resource :initial_setup, only: [:create, :show]
|
|
end
|