Commit f101fa60 authored by Cédric de Saint Martin's avatar Cédric de Saint Martin Committed by Cédric Le Ninivin

slaprunner: allow profile/instance to be run by GET.

No reason we use POST here.
parent 4c95b730
...@@ -703,7 +703,7 @@ app.add_url_rule('/editSoftwareProfile', 'editSoftwareProfile', ...@@ -703,7 +703,7 @@ app.add_url_rule('/editSoftwareProfile', 'editSoftwareProfile',
app.add_url_rule('/inspectSoftware', 'inspectSoftware', inspectSoftware) app.add_url_rule('/inspectSoftware', 'inspectSoftware', inspectSoftware)
app.add_url_rule('/removeSoftware', 'removeSoftware', removeSoftware) app.add_url_rule('/removeSoftware', 'removeSoftware', removeSoftware)
app.add_url_rule('/runSoftwareProfile', 'runSoftwareProfile', app.add_url_rule('/runSoftwareProfile', 'runSoftwareProfile',
runSoftwareProfile, methods=['POST']) runSoftwareProfile, methods=['GET', 'POST'])
app.add_url_rule('/viewSoftwareLog', 'viewSoftwareLog', app.add_url_rule('/viewSoftwareLog', 'viewSoftwareLog',
viewSoftwareLog, methods=['GET']) viewSoftwareLog, methods=['GET'])
app.add_url_rule('/editInstanceProfile', 'editInstanceProfile', app.add_url_rule('/editInstanceProfile', 'editInstanceProfile',
...@@ -713,7 +713,7 @@ app.add_url_rule('/inspectInstance', 'inspectInstance', ...@@ -713,7 +713,7 @@ app.add_url_rule('/inspectInstance', 'inspectInstance',
app.add_url_rule('/supervisordStatus', 'supervisordStatus', app.add_url_rule('/supervisordStatus', 'supervisordStatus',
supervisordStatus, methods=['GET']) supervisordStatus, methods=['GET'])
app.add_url_rule('/runInstanceProfile', 'runInstanceProfile', app.add_url_rule('/runInstanceProfile', 'runInstanceProfile',
runInstanceProfile, methods=['POST']) runInstanceProfile, methods=['GET', 'POST'])
app.add_url_rule('/removeInstance', 'removeInstance', removeInstance) app.add_url_rule('/removeInstance', 'removeInstance', removeInstance)
app.add_url_rule('/viewInstanceLog', 'viewInstanceLog', app.add_url_rule('/viewInstanceLog', 'viewInstanceLog',
viewInstanceLog, methods=['GET']) viewInstanceLog, methods=['GET'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment