mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
Add healthcheck endpoint, spec testing
This commit is contained in:
parent
4d06c01d21
commit
08132f75bd
4 changed files with 76 additions and 2 deletions
14
lib/vmpooler/api/healthcheck.rb
Normal file
14
lib/vmpooler/api/healthcheck.rb
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Vmpooler
|
||||
class API
|
||||
class Healthcheck < Sinatra::Base
|
||||
get '/healthcheck/?' do
|
||||
content_type :json
|
||||
|
||||
status 200
|
||||
JSON.pretty_generate({ 'ok' => true })
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue