mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Set Sinatra not_found to JSON ok: false
This commit is contained in:
parent
f80dad32c2
commit
e121adb76b
1 changed files with 10 additions and 0 deletions
|
|
@ -42,6 +42,16 @@ module Vmpooler
|
|||
end
|
||||
end
|
||||
|
||||
not_found do
|
||||
content_type :json
|
||||
|
||||
result = {
|
||||
ok: false
|
||||
}
|
||||
|
||||
JSON.pretty_generate(result)
|
||||
end
|
||||
|
||||
get '/' do
|
||||
erb :dashboard, locals: {
|
||||
site_name: $config[:config]['site_name'] || '<b>vmpooler</b>'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue