From 209729cbc97bf989cb9cb149c74d5cb2c1adc3b8 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 17 Oct 2014 17:03:14 -0300 Subject: bulk mark as read #114 --- service/pixelated/config/app_factory.py | 1 + 1 file changed, 1 insertion(+) (limited to 'service/pixelated/config') diff --git a/service/pixelated/config/app_factory.py b/service/pixelated/config/app_factory.py index 6c9c07fe..ed752118 100644 --- a/service/pixelated/config/app_factory.py +++ b/service/pixelated/config/app_factory.py @@ -36,6 +36,7 @@ def _setup_routes(app, home_controller, mails_controller, tags_controller, featu app.add_url_rule('/mail//read', methods=['POST'], view_func=mails_controller.mark_mail_as_read) app.add_url_rule('/mail//unread', methods=['POST'], view_func=mails_controller.mark_mail_as_unread) app.add_url_rule('/mails/unread', methods=['POST'], view_func=mails_controller.mark_many_mail_unread) + app.add_url_rule('/mails/read', methods=['POST'], view_func=mails_controller.mark_many_mail_read) app.add_url_rule('/mail/', methods=['GET'], view_func=mails_controller.mail) app.add_url_rule('/mail/', methods=['DELETE'], view_func=mails_controller.delete_mail) app.add_url_rule('/mails', methods=['DELETE'], view_func=mails_controller.delete_mails) -- cgit v1.2.3