API Base App

This commit is contained in:
2022-11-09 15:20:04 -03:00
parent 1cf5a1f094
commit 0fbf73b3fd
19 changed files with 267 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<?php
use ProVM\Common\Controller\Emails;
$app->group('/emails', function($app) {
$app->get('/mailboxes', [Emails::class, 'mailboxes']);
$app->group('/messages', function($app) {
$app->post('/attachments[/]', [Emails::class, 'withAttachments']);
$app->post('[/]', [Emails::class, 'messages']);
});
$app->post('/attachments', [Emails::class, 'attachments']);
$app->post('/attachment', [Emails::class, 'attachment']);
});

View File

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

View File

@ -0,0 +1,4 @@
<?php
use ProVM\Common\Controller\Install;
$app->get('/install', Install::class);