mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
create_token added to before
This commit is contained in:
parent
75661b6c86
commit
aeff9e9d3f
2 changed files with 25 additions and 39 deletions
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'json'
|
||||
|
||||
module Vmpooler
|
||||
|
|
@ -36,9 +38,9 @@ module Vmpooler
|
|||
end
|
||||
|
||||
get '/restart/?' do
|
||||
content_type :json
|
||||
# token authentication
|
||||
need_token!
|
||||
|
||||
# restart operation
|
||||
exit_process
|
||||
status 200
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue