diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-07-06 22:55:48 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-07-06 22:55:48 +0800 |
commit | c0e680111130f92fbfa765c9c6a78e4907c4397d (patch) | |
tree | 5449304fd66ea58208cca5477686aedc4b464cdd /config/routes/legacy_builds.rb | |
parent | 72ed502aaed8e0ce6782c04fb7db300179c4905d (diff) | |
download | gitlab-ce-c0e680111130f92fbfa765c9c6a78e4907c4397d.tar.gz |
Just draw :legacy_builds34702-draw-legacy-builds
Diffstat (limited to 'config/routes/legacy_builds.rb')
-rw-r--r-- | config/routes/legacy_builds.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/config/routes/legacy_builds.rb b/config/routes/legacy_builds.rb new file mode 100644 index 00000000000..5ab2b953ce1 --- /dev/null +++ b/config/routes/legacy_builds.rb @@ -0,0 +1,22 @@ +resources :builds, only: [:index, :show], constraints: { id: /\d+/ } do + collection do + resources :artifacts, only: [], controller: 'build_artifacts' do + collection do + get :latest_succeeded, + path: '*ref_name_and_path', + format: false + end + end + end + + member do + get :raw + end + + resource :artifacts, only: [], controller: 'build_artifacts' do + get :download + get :browse, path: 'browse(/*path)', format: false + get :file, path: 'file/*path', format: false + get :raw, path: 'raw/*path', format: false + end +end |