fix routes on client

This commit is contained in:
Anton Chuchkalov 2015-08-26 14:12:13 +03:00
parent 947088eaca
commit 394134798d

View File

@ -39,7 +39,7 @@ class StackTemplate < Handler
q[:template_body] = get_file_contents(filepath)
json = JSON.pretty_generate(q)
post_body('/stack_template', json) if question(I18n.t('handler.stack_template.question.create')){puts json}
post_body("/stack_template/#{q[:provider]}", json) if question(I18n.t('handler.stack_template.question.create')){puts json}
end
def list_handler(provider=nil)