projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '15964-fix-docs' refs #15964
[arvados.git]
/
apps
/
workbench
/
config
/
routes.rb
diff --git
a/apps/workbench/config/routes.rb
b/apps/workbench/config/routes.rb
index 0d5b8fca83a3a789776baa48b9ea0556767df210..ffc09ac933acf8d88fa1b07cac460c144a805a45 100644
(file)
--- a/
apps/workbench/config/routes.rb
+++ b/
apps/workbench/config/routes.rb
@@
-1,4
+1,8
@@
-ArvadosWorkbench::Application.routes.draw do
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+Rails.application.routes.draw do
themes_for_rails
resources :keep_disks
themes_for_rails
resources :keep_disks
@@
-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
@@
-60,6
+65,8
@@
ArvadosWorkbench::Application.routes.draw do
get 'virtual_machines', :on => :member
get 'repositories', :on => :member
get 'ssh_keys', :on => :member
get 'virtual_machines', :on => :member
get 'repositories', :on => :member
get 'ssh_keys', :on => :member
+ get 'link_account', :on => :collection
+ post 'link_account', :on => :collection, :action => :merge
end
get '/current_token' => 'users#current_token'
get "/add_ssh_key_popup" => 'users#add_ssh_key_popup', :as => :add_ssh_key_popup
end
get '/current_token' => 'users#current_token'
get "/add_ssh_key_popup" => 'users#add_ssh_key_popup', :as => :add_ssh_key_popup
@@
-87,6
+94,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, to: redirect('/search')
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)
@@
-107,6
+118,11
@@
ArvadosWorkbench::Application.routes.draw do
resources :workflows
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'
@@
-114,6
+130,12
@@
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 '/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]