30 lines
708 B
Ruby
30 lines
708 B
Ruby
module Devops
|
|
module Version2_0
|
|
module Routes
|
|
module BootstrapTemplatesRoutes
|
|
|
|
extend BootstrapTemplatesCommands
|
|
|
|
def self.registered(app)
|
|
|
|
# Get list of available bootstrap templates
|
|
#
|
|
# * *Request*
|
|
# - method : GET
|
|
# - headers :
|
|
# - Accept: application/json
|
|
#
|
|
# * *Returns* : array of strings
|
|
# [
|
|
# "omnibus"
|
|
# ]
|
|
app.get_with_headers "/templates", :headers => [:accept], &Devops::Version2_0::Handler::BootstrapTemplates.get_bootstrap_templates
|
|
|
|
puts "Bootstrap templates routes initialized"
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|