summaryrefslogtreecommitdiff
path: root/lib/JWebmail.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/JWebmail.pm')
-rw-r--r--lib/JWebmail.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/JWebmail.pm b/lib/JWebmail.pm
index 11c66db..92c5b44 100644
--- a/lib/JWebmail.pm
+++ b/lib/JWebmail.pm
@@ -79,10 +79,10 @@ sub route {
my $r = shift || $self->routes;
- $r->get( '/' => 'login')->to('Webmail#noaction');
+ $r->get ('/' => 'login')->to('Webmail#noaction');
$r->post('/' => 'login')->to('Webmail#login');
- $r->get('/about' )->to('Webmail#about');
- $r->get('/logout' )->to('Webmail#logout');
+ $r->get ('/about' )->to('Webmail#about');
+ $r->get ('/logout' )->to('Webmail#logout');
my $a = $r->under('/')->to('Webmail#auth');
$a->get('/home/*folder' )->to('Webmail#displayheaders', folder => '')->name('displayheaders');
@@ -91,6 +91,7 @@ sub route {
$a->get('/write' )->to('Webmail#writemail');
$a->post('/write' => 'send' )->to('Webmail#sendmail');
$a->post('/move' )->to('Webmail#move');
+ $a->post('/remove/*folder' )->to('Webmail#remove', folder => '');
}