From 4101962ceb0a24fcf48ff349d2e4b732a6900cb6 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Fri, 21 Sep 2012 11:43:32 +0200 Subject: [PATCH] appflow: Add post /service_template route --- flow/sunstone/routes/appflow.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flow/sunstone/routes/appflow.rb b/flow/sunstone/routes/appflow.rb index 9ee338a42c..87b5730278 100644 --- a/flow/sunstone/routes/appflow.rb +++ b/flow/sunstone/routes/appflow.rb @@ -94,5 +94,13 @@ post '/service_template/:id/action' do resp = client.post('/service_template/' + params[:id] + '/action', request.body.read) + format_response(resp) +end + +post '/service_template' do + client = build_client + + resp = client.post('/service_template', request.body.read) + format_response(resp) end \ No newline at end of file