summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2015-12-18 08:41:16 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-14 12:48:12 +0100
commitf091272f1982dfe977c9f366e4127fbbe0314f4a (patch)
tree9e2ff5dad12d9e93c6f5028452b662f6824ba734 /config
parenta96d45c694bd8fe7d07283d0b46725ca8e4c281b (diff)
downloadgitlab-ce-f091272f1982dfe977c9f366e4127fbbe0314f4a.tar.gz
Move artifacts controller level up
This reverts nesting artifacts controller in builds module.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb
index bf9ee416aca..d5b5cb2d5e3 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -608,13 +608,9 @@ Rails.application.routes.draw do
post :retry
end
- scope module: :builds do
- resource :artifacts, only: [] do
- collection do
- get :download
- get 'view(/:path)', as: :view, to: 'artifacts#view'
- end
- end
+ resource :artifacts, only: [] do
+ get :download
+ get 'browse(/*path)', action: :browse, as: :browse
end
end