Commit 6309b1c3 authored by Vladimir Shushlin's avatar Vladimir Shushlin Committed by Filipa Lacerda

Add route for environments cross-project dashboard

parent b2a39013
...@@ -10,6 +10,10 @@ class OperationsController < ApplicationController ...@@ -10,6 +10,10 @@ class OperationsController < ApplicationController
def index def index
end end
def environments
render :index
end
def list def list
Gitlab::PollingInterval.set_header(response, interval: POLLING_INTERVAL) Gitlab::PollingInterval.set_header(response, interval: POLLING_INTERVAL)
projects = load_projects(current_user) projects = load_projects(current_user)
......
# frozen_string_literal: true # frozen_string_literal: true
get 'operations' => 'operations#index' get 'operations' => 'operations#index'
get 'operations/environments' => 'operations#environments'
get 'operations/list' => 'operations#list' get 'operations/list' => 'operations#list'
post 'operations' => 'operations#create', as: :add_operations_project post 'operations' => 'operations#create', as: :add_operations_project
delete 'operations' => 'operations#destroy', as: :remove_operations_project delete 'operations' => 'operations#destroy', as: :remove_operations_project
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment