18794: Add version and config metrics to workbench1.
[arvados.git] / apps / workbench / config / routes.rb
index 718adfd2ed0583a99f8eebb221b5eae0c7d012c3..0bf8dffc67be2602760b68a55f2d2bd1580ac303 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-ArvadosWorkbench::Application.routes.draw do
+Rails.application.routes.draw do
   themes_for_rails
 
   resources :keep_disks
@@ -130,7 +130,8 @@ ArvadosWorkbench::Application.routes.draw do
 
   root :to => 'projects#index'
 
-  match '/_health/ping', to: 'healthcheck#ping', via: [:get]
+  match '/_health/:check', to: 'management#health', via: [:get]
+  match '/metrics', to: 'management#metrics', via: [:get]
 
   get '/tests/mithril', to: 'tests#mithril'