Add healthcheck endpoint, spec testing

This commit is contained in:
Belen Bustamante 2020-08-25 10:45:50 -07:00 committed by suckatrash
parent 4d06c01d21
commit 08132f75bd
No known key found for this signature in database
GPG key ID: 3857A763831B0756
4 changed files with 76 additions and 2 deletions

View 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