Use singular resource for NotificationSetting
Since a user cannot have multiple NotificationSettings records for one group/project we can use singular resource.
This commit is contained in:
parent
127119f2c4
commit
069724cef5
|
@ -406,7 +406,7 @@ Rails.application.routes.draw do
|
|||
|
||||
resource :avatar, only: [:destroy]
|
||||
resources :milestones, constraints: { id: /[^\/]+/ }, only: [:index, :show, :update, :new, :create]
|
||||
resources :notification_settings, only: [:update]
|
||||
resource :notification_setting, only: [:update]
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -608,7 +608,7 @@ Rails.application.routes.draw do
|
|||
|
||||
resources :forks, only: [:index, :new, :create]
|
||||
resource :import, only: [:new, :create, :show]
|
||||
resources :notification_settings, only: [:create, :update]
|
||||
resource :notification_setting, only: [:create, :update]
|
||||
|
||||
resources :refs, only: [] do
|
||||
collection do
|
||||
|
|
Loading…
Reference in New Issue