Download attachments
This commit is contained in:
@ -2,9 +2,12 @@
|
||||
use ProVM\Common\Controller\Emails;
|
||||
|
||||
$app->group('/emails', function($app) {
|
||||
$app->group('/mailbox/{mailbox}', function ($app) {
|
||||
$app->group('/mailbox/{mailbox_id}', function($app) {
|
||||
$app->get('[/]', [Emails::class, 'messages']);
|
||||
});
|
||||
$app->group('/message/{message_id}', function($app) {
|
||||
$app->get('[/]', [Emails::class, 'show']);
|
||||
});
|
||||
$app->get('/mailboxes', Emails::class);
|
||||
$app->get('[/]', Emails::class);
|
||||
});
|
||||
|
6
ui/resources/routes/02_attachments.php
Normal file
6
ui/resources/routes/02_attachments.php
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
use ProVM\Common\Controller\Attachments;
|
||||
|
||||
$app->group('/attachment/{attachment_id}', function($app) {
|
||||
$app->get('[/]', [Attachments::class, 'get']);
|
||||
});
|
Reference in New Issue
Block a user