summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-05-02 15:25:26 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-05-02 15:25:26 +0000
commitc5dee301f8bb6496c09c2aef54f9665b350c535f (patch)
treeae6354684944ff91413a5c2cceb9126014aff893 /config/routes
parentd32ecb23eb10065b1cc5eea95f4271ef402f0059 (diff)
parent0ca6ff67e438a8218ac53edd6280041d2f4b7a9c (diff)
downloadgitlab-ce-c5dee301f8bb6496c09c2aef54f9665b350c535f.tar.gz
Merge branch 'dm-snippet-download-button' into 'master'
Add download button to project snippets See merge request !11004
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/project.rb2
-rw-r--r--config/routes/snippets.rb3
2 files changed, 2 insertions, 3 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 71fc84a7a12..aaad503eba4 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -44,7 +44,7 @@ constraints(ProjectUrlConstrainer.new) do
resources :snippets, concerns: :awardable, constraints: { id: /\d+/ } do
member do
- get 'raw'
+ get :raw
post :mark_as_spam
end
end
diff --git a/config/routes/snippets.rb b/config/routes/snippets.rb
index bced4a7975e..dae83734fe6 100644
--- a/config/routes/snippets.rb
+++ b/config/routes/snippets.rb
@@ -1,7 +1,6 @@
resources :snippets, concerns: :awardable do
member do
- get 'raw'
- get 'download'
+ get :raw
post :mark_as_spam
post :preview_markdown
end