Module: Vert::Health::Routes
- Defined in:
- lib/vert/health/routes.rb
Class Method Summary collapse
Class Method Details
.mount(router, path: nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/vert/health/routes.rb', line 7 def mount(router, path: nil) path ||= Vert.config.health_check_path router.instance_eval do scope path do get "/", to: "health#show", as: :health get "/live", to: "health#live", as: :health_live get "/ready", to: "health#ready", as: :health_ready end end end |