mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Rerouting for new /summary routes
This commit is contained in:
parent
ce05c94677
commit
d3f4f6fb77
1 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,10 @@ module Vmpooler
|
||||||
call env.merge("PATH_INFO" => "/api/v#{api_version}/summary")
|
call env.merge("PATH_INFO" => "/api/v#{api_version}/summary")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
get '/summary/:route/?:key?/?' do
|
||||||
|
call env.merge("PATH_INFO" => "/api/v#{api_version}/summary/#{params[:route]}/#{params[:key]}")
|
||||||
|
end
|
||||||
|
|
||||||
post '/token/?' do
|
post '/token/?' do
|
||||||
call env.merge("PATH_INFO" => "/api/v#{api_version}/token")
|
call env.merge("PATH_INFO" => "/api/v#{api_version}/token")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue