mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-23 11:36:09 +10:00
Move artifacts controller level up
This reverts nesting artifacts controller in builds module.
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
class Projects::Builds::ArtifactsController < Projects::ApplicationController
|
||||
class Projects::ArtifactsController < Projects::ApplicationController
|
||||
layout 'project'
|
||||
before_action :authorize_download_build_artifacts!
|
||||
|
||||
@@ -14,7 +14,7 @@ class Projects::Builds::ArtifactsController < Projects::ApplicationController
|
||||
send_file artifacts_file.path, disposition: 'attachment'
|
||||
end
|
||||
|
||||
def view
|
||||
def browse
|
||||
@metadata = build.artifacts_metadata
|
||||
end
|
||||
|
||||
+3
-7
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user