Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes/project.rb')
-rw-r--r--config/routes/project.rb32
1 files changed, 17 insertions, 15 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 21dfe173715..09b212bc1a2 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -50,6 +50,8 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
end
+ resources :infrastructure_registry, only: [:index], module: :packages
+
resources :jobs, only: [:index, :show], constraints: { id: /\d+/ } do
collection do
resources :artifacts, only: [] do
@@ -397,6 +399,18 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
to: 'web_ide_schemas#show',
format: false,
as: :schema
+
+ resources :hooks, only: [:index, :create, :edit, :update, :destroy], constraints: { id: /\d+/ } do
+ member do
+ post :test
+ end
+
+ resources :hook_logs, only: [:show] do
+ member do
+ post :retry
+ end
+ end
+ end
end
# End of the /-/ scope.
@@ -460,18 +474,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
draw :legacy_builds
- resources :hooks, only: [:index, :create, :edit, :update, :destroy], constraints: { id: /\d+/ } do # rubocop: disable Cop/PutProjectRoutesUnderScope
- member do
- post :test # rubocop:todo Cop/PutProjectRoutesUnderScope
- end
-
- resources :hook_logs, only: [:show] do # rubocop: disable Cop/PutProjectRoutesUnderScope
- member do
- post :retry # rubocop:todo Cop/PutProjectRoutesUnderScope
- end
- end
- end
-
resources :container_registry, only: [:index, :destroy, :show], # rubocop: disable Cop/PutProjectRoutesUnderScope
controller: 'registry/repositories'
@@ -553,7 +555,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
# Deprecated unscoped routing.
scope as: 'deprecated' do
# Issue https://gitlab.com/gitlab-org/gitlab/issues/118849
- draw :pipelines
draw :repository
# Issue https://gitlab.com/gitlab-org/gitlab/-/issues/29572
@@ -571,12 +572,13 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
# Legacy routes.
# Introduced in 12.0.
# Should be removed with https://gitlab.com/gitlab-org/gitlab/issues/28848.
- Gitlab::Routing.redirect_legacy_paths(self, :mirror, :tags,
+ Gitlab::Routing.redirect_legacy_paths(self, :mirror, :tags, :hooks,
: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)
+ :vulnerability_feedback, :security, :dependencies, :issues,
+ :pipelines, :pipeline_schedules)
end
# rubocop: disable Cop/PutProjectRoutesUnderScope