summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2018-06-28 11:54:02 +0200
committerTiago Botelho <tiagonbotelho@hotmail.com>2018-06-28 14:25:15 +0200
commitdd467d6c758b485938553f312ee276fd54e63384 (patch)
tree34effd399f67a8507343586b175286d7d545067e /config
parent50a11a339e65b23bd33e5ad937dbc39674093869 (diff)
downloadgitlab-ce-dd467d6c758b485938553f312ee276fd54e63384.tar.gz
Prevents project first environment from being fetched in every project view
Diffstat (limited to 'config')
-rw-r--r--config/routes/project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 702141749e8..18685d3acfd 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -235,6 +235,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
collection do
+ get :metrics, action: :metrics_redirect
get :empty
get :folder, path: 'folders/*id', constraints: { format: /(html|json)/ }
end