Pablo made a proper button to call the /create task url
This commit is contained in:
@@ -71,9 +71,8 @@ def save(project, task_id):
|
||||
return flask.jsonify({'task_id': task_id, 'etag': task._etag, 'time': task._updated })
|
||||
|
||||
|
||||
# TODO: remove GET method once Pablo has made a proper button to call this URL with a POST.
|
||||
@perproject_blueprint.route('/create', methods=['POST', 'GET'])
|
||||
@perproject_blueprint.route('/create/<task_type>', methods=['POST', 'GET'])
|
||||
@perproject_blueprint.route('/create', methods=['POST'])
|
||||
@perproject_blueprint.route('/create/<task_type>', methods=['POST'])
|
||||
@attract_project_view()
|
||||
def create_task(project, task_type=None):
|
||||
task = current_attract.task_manager.create_task(project, task_type=task_type)
|
||||
|
Reference in New Issue
Block a user