X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d4de94839e7aabf550686ef3db9d43254ff2e4d7..66f6a487050e1cdb3fda6a32f195eb1913c83241:/apps/workbench/config/routes.rb diff --git a/apps/workbench/config/routes.rb b/apps/workbench/config/routes.rb index 777d9780d6..718adfd2ed 100644 --- a/apps/workbench/config/routes.rb +++ b/apps/workbench/config/routes.rb @@ -65,6 +65,8 @@ ArvadosWorkbench::Application.routes.draw do 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 @@ -95,7 +97,7 @@ ArvadosWorkbench::Application.routes.draw do post 'remove_selected_files', on: :member get 'tags', on: :member post 'save_tags', on: :member - get 'multisite', on: :collection + get 'multisite', on: :collection, to: redirect('/search') end get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file', format: false) @@ -109,7 +111,7 @@ ArvadosWorkbench::Application.routes.draw do get 'tab_counts', on: :member get 'public', on: :collection end - + resources :search do get 'choose', :on => :collection end @@ -131,11 +133,9 @@ ArvadosWorkbench::Application.routes.draw do 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]