Allow admins to add and remove invitations per account
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -74,9 +74,14 @@ Rails.application.routes.draw do
|
||||
root to: 'dashboard#index'
|
||||
|
||||
resources 'users', param: 'username', only: ['index', 'show'] do
|
||||
|
||||
member do
|
||||
post 'invitations', to: 'users#create_invitations'
|
||||
delete 'invitations', to: 'users#delete_invitations'
|
||||
end
|
||||
end
|
||||
|
||||
# post 'users/:username/invitations', to: 'users#create_invitations'
|
||||
|
||||
get 'invitations', to: 'invitations#index'
|
||||
|
||||
resources :donations
|
||||
|
||||
Reference in New Issue
Block a user