diff options
author | Paweł Chojnacki <pawel@chojnacki.ws> | 2018-02-23 17:58:40 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2018-02-23 17:58:40 +0000 |
commit | 0e97eca1d8209a790ab34898e0c5f815bb0565de (patch) | |
tree | fc2136cb767e2052728d1943febf6dff4b7c1ff8 /config/routes | |
parent | 53d7491a73f73f9634dbecde8d8c1333bfadadad (diff) | |
download | gitlab-ce-0e97eca1d8209a790ab34898e0c5f815bb0565de.tar.gz |
Backport custom metrics ce components
Diffstat (limited to 'config/routes')
-rw-r--r-- | config/routes/project.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb index 37f2d490030..8fe545b721e 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -78,7 +78,9 @@ constraints(ProjectUrlConstrainer.new) do resource :mattermost, only: [:new, :create] namespace :prometheus do - get :active_metrics + resources :metrics, constraints: { id: %r{[^\/]+} }, only: [] do + get :active_common, on: :collection + end end resources :deploy_keys, constraints: { id: /\d+/ }, only: [:index, :new, :create, :edit, :update] do |