diff options
Diffstat (limited to 'config/routes/project.rb')
-rw-r--r-- | config/routes/project.rb | 42 |
1 files changed, 13 insertions, 29 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb index afc06780471..5eb0b9396c9 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -221,20 +221,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do end end - # Legacy routes for `/-/integrations` which are now in `/-/settings/integrations`. - # Can be removed in 15.2, see https://gitlab.com/gitlab-org/gitlab/-/issues/334846 - resources :integrations, controller: 'settings/integrations', constraints: { id: %r{[^/]+} }, only: [:edit, :update] do - member do - put :test - end - - resources :hook_logs, only: [:show], controller: 'settings/integration_hook_logs' do - member do - post :retry - end - end - end - resources :boards, only: [:index, :show, :create, :update, :destroy], constraints: { id: /\d+/ } do collection do get :recent @@ -252,13 +238,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do end end - resources :logs, only: [:index] do - collection do - get :k8s - get :elasticsearch - end - end - resources :starrers, only: [:index] resources :forks, only: [:index, :new, :create] resources :group_links, only: [:update, :destroy], constraints: { id: /\d+|:id/ } @@ -319,15 +298,18 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do resources :terraform, only: [:index] - resources :google_cloud, only: [:index] - namespace :google_cloud do + get '/configuration', to: 'configuration#index' + resources :revoke_oauth, only: [:create] resources :service_accounts, only: [:index, :create] resources :gcp_regions, only: [:index, :create] + get '/deployments', to: 'deployments#index' get '/deployments/cloud_run', to: 'deployments#cloud_run' get '/deployments/cloud_storage', to: 'deployments#cloud_storage' + + get '/databases', to: 'databases#index' end resources :environments, except: [:destroy] do @@ -377,8 +359,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do get 'work_items/*work_items_path' => 'work_items#index', as: :work_items - resource :tracing, only: [:show] - post 'incidents/integrations/pagerduty', to: 'incident_management/pager_duty_incidents#create' resources :incidents, only: [:index] @@ -480,6 +460,14 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do end end end + + namespace :harbor do + resources :repositories, only: [:index, :show] do + resources :artifacts, only: [:index] do + resources :tags, only: [:index] + end + end + end end # End of the /-/ scope. @@ -546,9 +534,6 @@ 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. @@ -638,7 +623,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do :commits, :commit, :find_file, :files, :compare, :cycle_analytics, :mattermost, :variables, :triggers, :environments, :protected_environments, :error_tracking, :alert_management, - :tracing, :serverless, :clusters, :audit_events, :wikis, :merge_requests, :vulnerability_feedback, :security, :dependencies, :issues, :pipelines, :pipeline_schedules, :runners, :snippets) |