X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2858d8075d2178fa252af4e585687855e3b30dc2..4aee7d57faff02fc6b7b6f750dc22a29e58bb963:/apps/workbench/config/routes.rb diff --git a/apps/workbench/config/routes.rb b/apps/workbench/config/routes.rb index 1042609993..718adfd2ed 100644 --- 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 @@ -12,13 +16,22 @@ ArvadosWorkbench::Application.routes.draw do get "users/setup" => 'users#setup', :as => :setup_user get "report_issue_popup" => 'actions#report_issue_popup', :as => :report_issue_popup post "report_issue" => 'actions#report_issue', :as => :report_issue + get "star" => 'actions#star', :as => :star + get "all_processes" => 'work_units#index', :as => :all_processes + get "choose_work_unit_templates" => 'work_unit_templates#choose', :as => :choose_work_unit_templates + resources :work_units do + post 'show_child_component', :on => :member + end resources :nodes resources :humans resources :traits resources :api_client_authorizations resources :virtual_machines resources :containers - resources :container_requests + resources :container_requests do + post 'cancel', :on => :member + post 'copy', on: :member + end get '/virtual_machines/:id/webshell/:login' => 'virtual_machines#webshell', :as => :webshell_virtual_machine resources :authorized_keys resources :job_tasks @@ -34,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 + resources :sessions 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 @@ -51,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 @@ -66,6 +82,7 @@ ArvadosWorkbench::Application.routes.draw do get 'choose', on: :collection end resources :pipeline_instances do + post 'cancel', :on => :member get 'compare', on: :collection post 'copy', on: :member end @@ -77,6 +94,10 @@ ArvadosWorkbench::Application.routes.draw do 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) @@ -95,6 +116,13 @@ ArvadosWorkbench::Application.routes.draw 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' @@ -102,6 +130,12 @@ ArvadosWorkbench::Application.routes.draw do 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]