API Base App
This commit is contained in:
12
api/resources/routes/01_emails.php
Normal file
12
api/resources/routes/01_emails.php
Normal 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']);
|
||||
});
|
8
api/resources/routes/02_attachments.php
Normal file
8
api/resources/routes/02_attachments.php
Normal 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);
|
||||
});
|
4
api/resources/routes/98_install.php
Normal file
4
api/resources/routes/98_install.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
use ProVM\Common\Controller\Install;
|
||||
|
||||
$app->get('/install', Install::class);
|
Reference in New Issue
Block a user