Transition to creating tasks with POST method rather than GET.

GET will be removed once we have a functioning button that does POST.
This commit is contained in:
2016-09-20 17:39:52 +02:00
parent 008ffa0aa4
commit dfaf4e84c0

View File

@@ -60,7 +60,8 @@ def save(project, task_id):
return flask.jsonify({'task_id': task_id, 'etag': task._etag}) return flask.jsonify({'task_id': task_id, 'etag': task._etag})
@blueprint.route('/<project_url>/create') # TODO: remove GET method once Pablo has made a proper button to call this URL with a POST.
@blueprint.route('/<project_url>/create', methods=['POST', 'GET'])
@attract_project_view() @attract_project_view()
def create_task(project): def create_task(project):
task = current_task_manager.create_task(project) task = current_task_manager.create_task(project)