Archived
fix flask usage
This commit is contained in:
1 parent
9441742646
commit
9794f75c96
1 file changed
+2
-2
+2
-2
@@ -87,7 +87,7 @@ def list_lists():
|
||||
return jsonify({'lists': lists})
|
||||
|
||||
|
||||
@app.route('/<list_name>', method='PUT')
|
||||
@app.route('/<list_name>', methods=['PUT'])
|
||||
def subscribe(list_name):
|
||||
""" Adds a new subscriber to the list called 'list_name'
|
||||
|
||||
@@ -121,7 +121,7 @@ def subscribe(list_name):
|
||||
return jsonify(True)
|
||||
|
||||
|
||||
@app.route('/<list_name>', method='DELETE')
|
||||
@app.route('/<list_name>', methods=['DELETE'])
|
||||
def unsubscribe(list_name):
|
||||
""" Unsubsribe an email address from the mailing list.
|
||||
|
||||
|
||||
Reference in new issue
Block a user