projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
21123: Add container_requests/{uuid}/container_status endpoint.
[arvados.git]
/
services
/
api
/
config
/
routes.rb
diff --git
a/services/api/config/routes.rb
b/services/api/config/routes.rb
index 98f5788d6505d3525115f3b3a8e5622b8a059937..b87e86f664de7e3230331e8233744ac589e4a169 100644
(file)
--- a/
services/api/config/routes.rb
+++ b/
services/api/config/routes.rb
@@
-40,10
+40,13
@@
Rails.application.routes.draw do
get 'auth', on: :member
post 'lock', on: :member
post 'unlock', on: :member
get 'auth', on: :member
post 'lock', on: :member
post 'unlock', on: :member
+ post 'update_priority', on: :member
get 'secret_mounts', on: :member
get 'current', on: :collection
end
get 'secret_mounts', on: :member
get 'current', on: :collection
end
- resources :container_requests
+ resources :container_requests do
+ get 'container_status', on: :member
+ end
resources :jobs do
get 'queue', on: :collection
get 'queue_size', on: :collection
resources :jobs do
get 'queue', on: :collection
get 'queue_size', on: :collection
@@
-112,7
+115,8
@@
Rails.application.routes.draw do
match '/static/login_failure', to: 'static#login_failure', as: :login_failure, via: [:get, :post]
match '/static/login_failure', to: 'static#login_failure', as: :login_failure, via: [:get, :post]
- match '/_health/ping', to: 'arvados/v1/healthcheck#ping', via: [:get]
+ match '/_health/:check', to: 'arvados/v1/management#health', via: [:get]
+ match '/metrics', to: 'arvados/v1/management#metrics', via: [:get]
# Send unroutable requests to an arbitrary controller
# (ends up at ApplicationController#render_not_found)
# Send unroutable requests to an arbitrary controller
# (ends up at ApplicationController#render_not_found)