diff options
Diffstat (limited to 'config/routes/project.rb')
-rw-r--r-- | config/routes/project.rb | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb index 8536ec9fc05..1783f3acc68 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -96,6 +96,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do namespace :ci do resource :lint, only: [:show, :create] resource :pipeline_editor, only: [:show], controller: :pipeline_editor, path: 'editor' + resource :secure_files, only: [:show], controller: :secure_files, path: 'secure_files' resources :daily_build_group_report_results, only: [:index], constraints: { format: /(csv|json)/ } namespace :prometheus_metrics do resources :histograms, only: [:create], constraints: { format: 'json' } @@ -162,14 +163,9 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do end end - resources :project_members, except: [:show, :new, :edit], constraints: { id: %r{[a-zA-Z./0-9_\-#%+:]+} }, concerns: :access_requestable do + resources :project_members, except: [:show, :new, :create, :edit], constraints: { id: %r{[a-zA-Z./0-9_\-#%+:]+} }, concerns: :access_requestable do collection do delete :leave - - # Used for import team - # from another project - get :import - post :apply_import end member do @@ -240,6 +236,8 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do end end + get 'releases/permalink/latest(/)(*suffix_path)', to: 'releases#latest_permalink', as: :latest_release_permalink, format: false + resources :logs, only: [:index] do collection do get :k8s @@ -319,7 +317,9 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do resources :google_cloud, only: [:index] namespace :google_cloud do + resources :revoke_oauth, only: [:create] resources :service_accounts, only: [:index, :create] + resources :gcp_regions, only: [:index, :create] get '/deployments/cloud_run', to: 'deployments#cloud_run' get '/deployments/cloud_storage', to: 'deployments#cloud_storage' @@ -541,6 +541,9 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do resources :container_registry, only: [:index, :destroy, :show], # rubocop: disable Cop/PutProjectRoutesUnderScope controller: 'registry/repositories' + resources :harbor_registry, only: [:index, :show], # rubocop: disable Cop/PutProjectRoutesUnderScope + controller: 'harbor/repositories' + namespace :registry do resources :repository, only: [] do # rubocop: disable Cop/PutProjectRoutesUnderScope # We default to JSON format in the controller to avoid ambiguity. |