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 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-20 19:48:08 +00:00
|
|
|
end
|