BigW Consortium Gitlab

Use singular resource for NotificationSetting

Since a user cannot have multiple NotificationSettings records for one group/project we can use singular resource.
parent 127119f2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment