List tokens via GET /token

This commit is contained in:
Scott Schneider 2015-08-18 18:44:27 -07:00
parent 4e7dc236b9
commit 492cfb06a3
2 changed files with 38 additions and 0 deletions

View file

@ -15,6 +15,10 @@ module Vmpooler
call env.merge("PATH_INFO" => "/api/v#{api_version}/summary/#{params[:route]}/#{params[:key]}")
end
get '/token/?' do
call env.merge("PATH_INFO" => "/api/v#{api_version}/token")
end
post '/token/?' do
call env.merge("PATH_INFO" => "/api/v#{api_version}/token")
end