saucy/config/routes.rb

43 lines
835 B
Ruby
Raw Normal View History

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
member do
get :delete
end
2022-06-25 12:48:46 +00:00
resources :contributions, only: [:new, :create]
end
2023-03-19 15:15:56 +00:00
resources :contributions, only: [:index, :edit, :update, :destroy] do
2023-03-23 18:08:25 +00:00
collection do
get :due
end
member do
get :delete
end
end
2022-06-25 22:45:47 +00:00
2022-10-06 14:50:38 +00:00
resources :notifications, only: [:index] do
2022-07-16 10:27:43 +00:00
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]
2023-08-07 12:50:50 +00:00
resources :payments, only: [:show] do
collection do
get :callback
end
end
resource :initial_setup, only: [:create, :show]
end