projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12519: Moved multisite search to its own URL
[arvados.git]
/
apps
/
workbench
/
config
/
routes.rb
diff --git
a/apps/workbench/config/routes.rb
b/apps/workbench/config/routes.rb
index 21cb7c40bc7755c22dc026a9f23c917369614149..777d9780d6b39f0863f4351ad6c914721315ff80 100644
(file)
--- a/
apps/workbench/config/routes.rb
+++ b/
apps/workbench/config/routes.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
ArvadosWorkbench::Application.routes.draw do
themes_for_rails
ArvadosWorkbench::Application.routes.draw do
themes_for_rails
@@
-43,8
+47,9
@@
ArvadosWorkbench::Application.routes.draw do
get '/repositories/:id/tree/:commit/*path' => 'repositories#show_tree', as: :show_repository_tree, format: false
get '/repositories/:id/blob/:commit/*path' => 'repositories#show_blob', as: :show_repository_blob, format: false
get '/repositories/:id/commit/:commit' => 'repositories#show_commit', as: :show_repository_commit
get '/repositories/:id/tree/:commit/*path' => 'repositories#show_tree', as: :show_repository_tree, format: false
get '/repositories/:id/blob/:commit/*path' => 'repositories#show_blob', as: :show_repository_blob, format: false
get '/repositories/:id/commit/:commit' => 'repositories#show_commit', as: :show_repository_commit
+ resources :sessions
match '/logout' => 'sessions#destroy', via: [:get, :post]
match '/logout' => 'sessions#destroy', via: [:get, :post]
- get '/logged_out' => 'sessions#
index
'
+ get '/logged_out' => 'sessions#
logged_out
'
resources :users do
get 'choose', :on => :collection
get 'home', :on => :member
resources :users do
get 'choose', :on => :collection
get 'home', :on => :member
@@
-75,6
+80,7
@@
ArvadosWorkbench::Application.routes.draw do
get 'choose', on: :collection
end
resources :pipeline_instances do
get 'choose', on: :collection
end
resources :pipeline_instances do
+ post 'cancel', :on => :member
get 'compare', on: :collection
post 'copy', on: :member
end
get 'compare', on: :collection
post 'copy', on: :member
end
@@
-86,6
+92,10
@@
ArvadosWorkbench::Application.routes.draw do
post 'share', :on => :member
post 'unshare', :on => :member
get 'choose', on: :collection
post 'share', :on => :member
post 'unshare', :on => :member
get 'choose', on: :collection
+ post 'remove_selected_files', on: :member
+ get 'tags', on: :member
+ post 'save_tags', on: :member
+ get 'multisite', on: :collection
end
get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file',
format: false)
end
get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file',
format: false)
@@
-99,13
+109,18
@@
ArvadosWorkbench::Application.routes.draw do
get 'tab_counts', on: :member
get 'public', on: :collection
end
get 'tab_counts', on: :member
get 'public', on: :collection
end
-
+
resources :search do
get 'choose', :on => :collection
end
resources :workflows
resources :search do
get 'choose', :on => :collection
end
resources :workflows
+ get "trash" => 'trash_items#index', :as => :trash
+ resources :trash_items do
+ post 'untrash_items', on: :collection
+ end
+
post 'actions' => 'actions#post'
get 'actions' => 'actions#show'
get 'websockets' => 'websocket#index'
post 'actions' => 'actions#post'
get 'actions' => 'actions#show'
get 'websockets' => 'websocket#index'
@@
-113,6
+128,14
@@
ArvadosWorkbench::Application.routes.draw do
root :to => 'projects#index'
root :to => 'projects#index'
+ match '/_health/ping', to: 'healthcheck#ping', via: [:get]
+
+ get '/tests/mithril', to: 'tests#mithril'
+
+ get '/multisite', to: 'multisite#search'
+
+ get '/status', to: 'status#status'
+
# Send unroutable requests to an arbitrary controller
# (ends up at ApplicationController#render_not_found)
match '*a', to: 'links#render_not_found', via: [:get, :post]
# Send unroutable requests to an arbitrary controller
# (ends up at ApplicationController#render_not_found)
match '*a', to: 'links#render_not_found', via: [:get, :post]