diff options
author | Robert Speicher <rspeicher@gmail.com> | 2019-06-25 13:53:57 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-06-26 11:29:41 -0500 |
commit | 8e42fe9450532321d2af24a3aaad757b863636e6 (patch) | |
tree | 6fedacb6fab66891a706352cd532015976761239 /config/routes | |
parent | 2d738b6f84e7f453202d24f615581e1fb3130e51 (diff) | |
download | gitlab-ce-8e42fe9450532321d2af24a3aaad757b863636e6.tar.gz |
Delineate additional EE-only routesrs-ee-only-routes-2
Diffstat (limited to 'config/routes')
-rw-r--r-- | config/routes/project.rb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb index 18d72acd214..93940c3b99a 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -210,8 +210,11 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do namespace :prometheus do resources :metrics, constraints: { id: %r{[^\/]+} }, only: [:index, :new, :create, :edit, :update, :destroy] do - post :validate_query, on: :collection get :active_common, on: :collection + + Gitlab.ee do + post :validate_query, on: :collection + end end Gitlab.ee do @@ -359,13 +362,10 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do get :builds get :failures get :status - get :security - get :licenses - end - member do - resources :stages, only: [], param: :name do - post :play_manual + Gitlab.ee do + get :security + get :licenses end end @@ -508,7 +508,9 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do end end - resources :issue_links, only: [:index, :create, :destroy], as: 'links', path: 'links' + Gitlab.ee do + resources :issue_links, only: [:index, :create, :destroy], as: 'links', path: 'links' + end end resources :notes, only: [:create, :destroy, :update], concerns: :awardable, constraints: { id: /\d+/ } do |