Download attachments

This commit is contained in:
2022-11-29 11:12:06 -03:00
parent c53eb4c7a6
commit f8500e061c
21 changed files with 242 additions and 27 deletions

View File

@ -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);
});

View File

@ -0,0 +1,6 @@
<?php
use ProVM\Common\Controller\Attachments;
$app->group('/attachment/{attachment_id}', function($app) {
$app->get('[/]', [Attachments::class, 'get']);
});