summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-04-30 12:15:20 -0500
committerDouwe Maan <douwe@selenight.nl>2017-04-30 17:52:49 -0500
commit2b3fc5e624bd0c8b9e1c68bf2b3741d8898cf0b0 (patch)
treed29cab907f6c68f2703bc56043e345948bfc578f /config/routes
parent54040ce0662c71cfaee3cc12305b5ab021beafbb (diff)
downloadgitlab-ce-2b3fc5e624bd0c8b9e1c68bf2b3741d8898cf0b0.tar.gz
Add download button to project snippetsdm-snippet-download-button
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 115ae2324b3..e777b9fc6e7 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 56534f677be..4ce4c11aa65 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