2016-10-05 12:21:27 +00:00
|
|
|
namespace :admin do
|
2018-01-27 05:35:53 +00:00
|
|
|
resources :users, constraints: { id: %r{[a-zA-Z./0-9_\-]+} } do
|
2016-10-05 12:21:27 +00:00
|
|
|
resources :keys, only: [:show, :destroy]
|
|
|
|
resources :identities, except: [:show]
|
2017-02-23 17:47:06 +00:00
|
|
|
resources :impersonation_tokens, only: [:index, :create] do
|
2017-01-06 16:00:46 +00:00
|
|
|
member do
|
|
|
|
put :revoke
|
|
|
|
end
|
|
|
|
end
|
2016-10-05 12:21:27 +00:00
|
|
|
|
|
|
|
member do
|
|
|
|
get :projects
|
|
|
|
get :keys
|
|
|
|
put :block
|
|
|
|
put :unblock
|
2019-10-10 00:06:44 +00:00
|
|
|
put :deactivate
|
|
|
|
put :activate
|
2016-10-05 12:21:27 +00:00
|
|
|
put :unlock
|
|
|
|
put :confirm
|
2020-10-15 12:09:06 +00:00
|
|
|
put :approve
|
2020-12-03 00:09:53 +00:00
|
|
|
delete :reject
|
2016-10-05 12:21:27 +00:00
|
|
|
post :impersonate
|
|
|
|
patch :disable_two_factor
|
|
|
|
delete 'remove/:email_id', action: 'remove_email', as: 'remove_email'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-09-26 12:06:00 +00:00
|
|
|
resource :session, only: [:new, :create] do
|
2020-01-14 12:07:41 +00:00
|
|
|
post 'destroy', action: :destroy, as: :destroy
|
2019-09-26 12:06:00 +00:00
|
|
|
end
|
|
|
|
|
2016-10-05 12:21:27 +00:00
|
|
|
resource :impersonation, only: :destroy
|
|
|
|
|
|
|
|
resources :abuse_reports, only: [:index, :destroy]
|
2018-01-30 10:11:47 +00:00
|
|
|
resources :gitaly_servers, only: [:index]
|
|
|
|
|
2020-02-18 00:09:20 +00:00
|
|
|
namespace :serverless do
|
2020-02-25 18:09:02 +00:00
|
|
|
resources :domains, only: [:index, :create, :update, :destroy] do
|
2020-02-18 00:09:20 +00:00
|
|
|
member do
|
|
|
|
post '/verify', to: 'domains#verify'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2016-10-05 12:21:27 +00:00
|
|
|
resources :spam_logs, only: [:index, :destroy] do
|
|
|
|
member do
|
|
|
|
post :mark_as_ham
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :applications
|
|
|
|
|
2016-12-08 18:59:41 +00:00
|
|
|
resources :groups, only: [:index, :new, :create]
|
|
|
|
|
|
|
|
scope(path: 'groups/*id',
|
|
|
|
controller: :groups,
|
2017-05-24 20:59:26 +00:00
|
|
|
constraints: { id: Gitlab::PathRegex.full_namespace_route_regex, format: /(html|json|atom)/ }) do
|
2016-12-08 18:59:41 +00:00
|
|
|
scope(as: :group) do
|
2016-10-05 12:21:27 +00:00
|
|
|
put :members_update
|
2016-12-08 18:59:41 +00:00
|
|
|
get :edit, action: :edit
|
|
|
|
get '/', action: :show
|
|
|
|
patch '/', action: :update
|
|
|
|
put '/', action: :update
|
|
|
|
delete '/', action: :destroy
|
2016-10-05 12:21:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-03-31 12:54:38 +00:00
|
|
|
resources :deploy_keys, only: [:index, :new, :create, :edit, :update, :destroy]
|
2016-10-05 12:21:27 +00:00
|
|
|
|
2017-04-20 08:31:37 +00:00
|
|
|
resources :hooks, only: [:index, :create, :edit, :update, :destroy] do
|
|
|
|
member do
|
2018-06-21 08:38:59 +00:00
|
|
|
post :test
|
2017-04-20 08:31:37 +00:00
|
|
|
end
|
2017-04-27 10:08:57 +00:00
|
|
|
|
|
|
|
resources :hook_logs, only: [:show] do
|
|
|
|
member do
|
2018-08-24 16:52:23 +00:00
|
|
|
post :retry
|
2017-04-27 10:08:57 +00:00
|
|
|
end
|
|
|
|
end
|
2016-10-05 12:21:27 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resources :broadcast_messages, only: [:index, :edit, :create, :update, :destroy] do
|
|
|
|
post :preview, on: :collection
|
|
|
|
end
|
|
|
|
|
2020-10-13 06:09:09 +00:00
|
|
|
get :instance_review, to: 'instance_review#index'
|
|
|
|
|
2018-10-09 05:59:42 +00:00
|
|
|
resource :health_check, controller: 'health_check', only: [:show]
|
2016-10-05 12:21:27 +00:00
|
|
|
resource :background_jobs, controller: 'background_jobs', only: [:show]
|
2018-10-15 13:59:00 +00:00
|
|
|
|
2016-10-05 12:21:27 +00:00
|
|
|
resource :system_info, controller: 'system_info', only: [:show]
|
2019-06-27 13:42:14 +00:00
|
|
|
resources :requests_profiles, only: [:index, :show], param: :name, constraints: { name: /.+\.(html|txt)/ }
|
2016-10-05 12:21:27 +00:00
|
|
|
|
2016-12-08 18:59:41 +00:00
|
|
|
resources :projects, only: [:index]
|
2016-10-05 12:21:27 +00:00
|
|
|
|
2020-08-21 18:10:24 +00:00
|
|
|
resources :instance_statistics, only: :index
|
2020-09-10 18:08:54 +00:00
|
|
|
resource :dev_ops_report, controller: 'dev_ops_report', only: :show
|
2020-08-21 18:10:24 +00:00
|
|
|
resources :cohorts, only: :index
|
|
|
|
|
2017-05-20 00:46:40 +00:00
|
|
|
scope(path: 'projects/*namespace_id',
|
|
|
|
as: :namespace,
|
2017-05-24 20:59:26 +00:00
|
|
|
constraints: { namespace_id: Gitlab::PathRegex.full_namespace_route_regex }) do
|
2016-10-05 12:21:27 +00:00
|
|
|
resources(:projects,
|
|
|
|
path: '/',
|
2017-05-24 20:59:26 +00:00
|
|
|
constraints: { id: Gitlab::PathRegex.project_route_regex },
|
2019-05-29 20:18:40 +00:00
|
|
|
only: [:show, :destroy]) do
|
2016-10-05 12:21:27 +00:00
|
|
|
member do
|
|
|
|
put :transfer
|
|
|
|
post :repository_check
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :runner_projects, only: [:create, :destroy]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
resource :appearances, only: [:show, :create, :update], path: 'appearance' do
|
|
|
|
member do
|
2017-11-22 13:48:38 +00:00
|
|
|
get :preview_sign_in
|
2016-10-05 12:21:27 +00:00
|
|
|
delete :logo
|
|
|
|
delete :header_logos
|
2017-09-26 07:54:32 +00:00
|
|
|
delete :favicon
|
2016-10-05 12:21:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-02-10 12:08:59 +00:00
|
|
|
resource :application_settings, only: :update do
|
2016-10-05 12:21:27 +00:00
|
|
|
resources :services, only: [:index, :edit, :update]
|
2020-03-26 06:08:40 +00:00
|
|
|
resources :integrations, only: [:edit, :update] do
|
2020-03-13 09:09:23 +00:00
|
|
|
member do
|
|
|
|
put :test
|
2020-12-03 00:09:53 +00:00
|
|
|
post :reset
|
2020-03-13 09:09:23 +00:00
|
|
|
end
|
|
|
|
end
|
2018-10-15 13:59:00 +00:00
|
|
|
|
2017-04-05 12:29:48 +00:00
|
|
|
get :usage_data
|
2018-09-10 21:57:03 +00:00
|
|
|
put :reset_registration_token
|
2016-10-05 12:21:27 +00:00
|
|
|
put :reset_health_check_token
|
|
|
|
put :clear_repository_check_states
|
2019-10-07 21:07:54 +00:00
|
|
|
match :general, :integrations, :repository, :ci_cd, :reporting, :metrics_and_profiling, :network, :preferences, via: [:get, :patch]
|
2019-05-16 09:32:25 +00:00
|
|
|
get :lets_encrypt_terms_of_service
|
2020-01-08 09:07:53 +00:00
|
|
|
|
|
|
|
post :create_self_monitoring_project
|
|
|
|
get :status_create_self_monitoring_project
|
2020-01-13 15:07:53 +00:00
|
|
|
delete :delete_self_monitoring_project
|
|
|
|
get :status_delete_self_monitoring_project
|
2016-10-05 12:21:27 +00:00
|
|
|
end
|
|
|
|
|
2020-09-18 09:09:32 +00:00
|
|
|
resources :plan_limits, only: :create
|
|
|
|
|
2016-10-05 12:21:27 +00:00
|
|
|
resources :labels
|
|
|
|
|
|
|
|
resources :runners, only: [:index, :show, :update, :destroy] do
|
|
|
|
member do
|
2020-11-02 21:09:10 +00:00
|
|
|
post :resume
|
|
|
|
post :pause
|
2016-10-05 12:21:27 +00:00
|
|
|
end
|
2018-06-13 09:18:47 +00:00
|
|
|
|
|
|
|
collection do
|
|
|
|
get :tag_list, format: :json
|
2020-09-30 21:10:09 +00:00
|
|
|
get :runner_setup_scripts, format: :json
|
2018-06-13 09:18:47 +00:00
|
|
|
end
|
2016-10-05 12:21:27 +00:00
|
|
|
end
|
|
|
|
|
2017-05-16 11:41:15 +00:00
|
|
|
resources :jobs, only: :index do
|
2016-10-05 12:21:27 +00:00
|
|
|
collection do
|
|
|
|
post :cancel_all
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-05-19 18:08:11 +00:00
|
|
|
namespace :ci do
|
|
|
|
resource :variables, only: [:show, :update]
|
|
|
|
end
|
|
|
|
|
2019-04-10 02:13:43 +00:00
|
|
|
concerns :clusterable
|
|
|
|
|
2020-04-08 09:09:43 +00:00
|
|
|
get '/dashboard/stats', to: 'dashboard#stats'
|
|
|
|
|
2016-10-05 12:21:27 +00:00
|
|
|
root to: 'dashboard#index'
|
|
|
|
end
|