11906: healthcheck ping for workbench
[arvados.git] / apps / workbench / config / routes.rb
index 21cb7c40bc7755c22dc026a9f23c917369614149..a3644e51699871351aecba16ad7dda354695443b 100644 (file)
@@ -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
 
@@ -75,6 +79,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
@@ -86,6 +91,9 @@ 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
   end
   get('/collections/download/:uuid/:reader_token/*file' => 'collections#show_file',
       format: false)
@@ -106,6 +114,11 @@ ArvadosWorkbench::Application.routes.draw do
 
   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'
@@ -113,6 +126,8 @@ ArvadosWorkbench::Application.routes.draw do
 
   root :to => 'projects#index'
 
+  match '/_health/ping', to: 'healthcheck#ping', via: [:get]
+
   # Send unroutable requests to an arbitrary controller
   # (ends up at ApplicationController#render_not_found)
   match '*a', to: 'links#render_not_found', via: [:get, :post]