summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-05-02 14:38:28 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-05-02 14:38:28 +0000
commitd32ecb23eb10065b1cc5eea95f4271ef402f0059 (patch)
tree0a741d5611f6b591710e58193d8a66ceb68bb338 /config/routes
parentac3796b3d3b0e0ceaeceabd3d5783da60f673779 (diff)
parent8c3a03c1b9bf5c80571c9dc07ba258fa10dd61c8 (diff)
downloadgitlab-ce-d32ecb23eb10065b1cc5eea95f4271ef402f0059.tar.gz
Merge branch '12910-personal-snippets-notes-show' into 'master'
Display comments for personal snippets See merge request !10974
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/snippets.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/routes/snippets.rb b/config/routes/snippets.rb
index 56534f677be..bced4a7975e 100644
--- a/config/routes/snippets.rb
+++ b/config/routes/snippets.rb
@@ -5,6 +5,14 @@ resources :snippets, concerns: :awardable do
post :mark_as_spam
post :preview_markdown
end
+
+ scope module: :snippets do
+ resources :notes, only: [:index, :create, :destroy, :update], concerns: :awardable, constraints: { id: /\d+/ } do
+ member do
+ delete :delete_attachment
+ end
+ end
+ end
end
get '/s/:username', to: redirect('/u/%{username}/snippets'),