From dfaf4e84c01971332709c1e125eb73890232c931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 20 Sep 2016 17:39:52 +0200 Subject: [PATCH] Transition to creating tasks with POST method rather than GET. GET will be removed once we have a functioning button that does POST. --- attract/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/attract/tasks.py b/attract/tasks.py index d2d8c0e..d9697c0 100644 --- a/attract/tasks.py +++ b/attract/tasks.py @@ -60,7 +60,8 @@ def save(project, task_id): return flask.jsonify({'task_id': task_id, 'etag': task._etag}) -@blueprint.route('//create') +# TODO: remove GET method once Pablo has made a proper button to call this URL with a POST. +@blueprint.route('//create', methods=['POST', 'GET']) @attract_project_view() def create_task(project): task = current_task_manager.create_task(project)