Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAlex Ives <alex@ives.mn>2018-07-27 07:26:13 +0300
committerAlex Ives <alex@ives.mn>2019-08-22 16:49:40 +0300
commit3e2b45870ad7d6f356b58e0bdd8852b0ca39ff5a (patch)
treebf676cbd631d3b51864246089d662ddc0dda012a /config
parent842b4d4ab59f19f7311b7f39948e699a6924fd52 (diff)
Issue #39099: Add links for latest pipelines
Diffstat (limited to 'config')
-rw-r--r--config/routes/project.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 9a453d101a1..29e462f904d 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -359,6 +359,9 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
collection do
resource :pipelines_settings, path: 'settings', only: [:show, :update]
get :charts
+ scope '(*ref)', constraints: { ref: Gitlab::PathRegex.git_reference_regex } do
+ get :latest, action: :show, defaults: { latest: true }
+ end
end
member do