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')
-rw-r--r--config/routes/group.rb6
-rw-r--r--config/routes/project.rb18
2 files changed, 13 insertions, 11 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb
index 4a47b349665..a715596580d 100644
--- a/config/routes/group.rb
+++ b/config/routes/group.rb
@@ -121,7 +121,11 @@ constraints(::Constraints::GroupUrlConstrainer.new) do
resource :dependency_proxy, only: [:show, :update]
resources :email_campaigns, only: :index
- resources :observability, only: :index
+ namespace :observability do
+ get 'dashboards'
+ get 'explore'
+ get 'manage'
+ end
namespace :harbor do
resources :repositories, only: [:index, :show], constraints: { id: %r{[a-zA-Z./:0-9_\-]+} } do
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 0b0d370223c..5a85a029607 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -142,7 +142,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
end
- resource :repository, only: [:show], controller: :repository do
+ resource :repository, only: [:show, :update], controller: :repository do
# TODO: Removed this "create_deploy_token" route after change was made in app/helpers/ci_variables_helper.rb:14
# See MR comment for more detail: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27059#note_311585356
post :create_deploy_token, path: 'deploy_token/create'
@@ -353,7 +353,9 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
resources :alert_management, only: [:index] do
- get 'details', on: :member
+ member do
+ get 'details(/*page)', to: 'alert_management#details', as: 'details'
+ end
end
get 'alert_management/:id', to: 'alert_management#details', as: 'alert_management_alert'
@@ -379,14 +381,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
resources :projects, only: :index
end
- resources :product_analytics, only: [:index] do
- collection do
- get :setup
- get :test
- get :graphs
- end
- end
-
resources :error_tracking, only: [:index], controller: :error_tracking do
collection do
get ':issue_id/details',
@@ -478,6 +472,10 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
end
end
+
+ namespace :ml do
+ resources :experiments, only: [:index, :show], controller: 'experiments'
+ end
end
# End of the /-/ scope.