summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2017-02-07 18:02:02 +0100
committerAdam Niedzielski <adamsunday@gmail.com>2017-03-01 16:34:28 +0100
commit0a31efb57768345e2b3350a493021a26b54994a3 (patch)
tree6971509949fc7024c9a431e03160068b19e6d24a /config
parent57c068e169381565488d9430431a7202399507f0 (diff)
downloadgitlab-ce-0a31efb57768345e2b3350a493021a26b54994a3.tar.gz
Remove query parameters from notes polling endpoint to make caching easier
Diffstat (limited to 'config')
-rw-r--r--config/routes/project.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 84f123ff717..a9f95c09bef 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -265,7 +265,7 @@ constraints(ProjectUrlConstrainer.new) do
resources :group_links, only: [:index, :create, :update, :destroy], constraints: { id: /\d+/ }
- resources :notes, only: [:index, :create, :destroy, :update], concerns: :awardable, constraints: { id: /\d+/ } do
+ resources :notes, only: [:create, :destroy, :update], concerns: :awardable, constraints: { id: /\d+/ } do
member do
delete :delete_attachment
post :resolve
@@ -273,6 +273,8 @@ constraints(ProjectUrlConstrainer.new) do
end
end
+ get 'noteable/:target_type/:target_id/notes' => 'notes#index', as: 'noteable_notes'
+
resources :boards, only: [:index, :show] do
scope module: :boards do
resources :issues, only: [:index, :update]