diff options
Diffstat (limited to 'service/pixelated/user_agent.py')
-rw-r--r-- | service/pixelated/user_agent.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/service/pixelated/user_agent.py b/service/pixelated/user_agent.py index aba06f05..c018b1bb 100644 --- a/service/pixelated/user_agent.py +++ b/service/pixelated/user_agent.py @@ -96,11 +96,19 @@ def mails(): @app.route('/mail/<mail_id>', methods=['DELETE']) -def delete_mails(mail_id): +def delete_mail(mail_id): mail_service.delete_mail(mail_id) return respond_json(None) +@app.route('/mails', methods=['DELETE']) +def delete_mails(): + idents = json.loads(request.form['idents']) + for ident in idents: + mail_service.delete_mail(ident) + return respond_json(None) + + @app.route('/tags') def tags(): tags = mail_service.all_tags() |