diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-17 15:17:00 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:48:12 +0100 |
commit | a96d45c694bd8fe7d07283d0b46725ca8e4c281b (patch) | |
tree | 803a4367ce029f758323ab24039ddf52e46a24af /config/routes.rb | |
parent | 79fe18d9e7290fb880f1feb5f2c9f3f96b2d74fe (diff) | |
download | gitlab-ce-a96d45c694bd8fe7d07283d0b46725ca8e4c281b.tar.gz |
Add view action to artifacts controller
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index f639f89189d..bf9ee416aca 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -609,9 +609,10 @@ Rails.application.routes.draw do end scope module: :builds do - resources :artifacts do + resource :artifacts, only: [] do collection do get :download + get 'view(/:path)', as: :view, to: 'artifacts#view' end end end |