diff options
Diffstat (limited to 'src/jwebmail/__init__.py')
-rw-r--r-- | src/jwebmail/__init__.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py index 6ccca40..d692c30 100644 --- a/src/jwebmail/__init__.py +++ b/src/jwebmail/__init__.py @@ -22,6 +22,7 @@ from .webmail import ( logout, move, readmail, + remove, sendmail, writemail, ) @@ -35,7 +36,7 @@ else: toml_read_file = dict(load=toml_load, text=True) -__version__ = "2.5.0.dev2" +__version__ = "2.6.0.dev0" csrf = CSRFProtect() @@ -156,6 +157,18 @@ def route(app): methods=["POST"], ) + lr_move = login_required(move) + app.add_url_rule("/<lang_code>/move/", view_func=lr_move, methods=["POST"]) + app.add_url_rule("/<lang_code>/move/<folder>", view_func=lr_move, methods=["POST"]) + + lr_remove = login_required(remove) app.add_url_rule( - "/<lang_code>/move/<folder>", view_func=login_required(move), methods=["POST"] + "/<lang_code>/remove/", + view_func=lr_remove, + methods=["POST"], + ) + app.add_url_rule( + "/<lang_code>/remove/<folder>", + view_func=lr_remove, + methods=["POST"], ) |