Full implemantation
This commit is contained in:
@ -1,12 +0,0 @@
|
||||
<?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']);
|
||||
});
|
@ -1,13 +1,18 @@
|
||||
<?php
|
||||
use ProVM\Common\Controller\Mailboxes;
|
||||
use ProVM\Common\Controller\Messages;
|
||||
|
||||
$app->group('/mailboxes', function($app) {
|
||||
$app->post('/register', [Mailboxes::class, 'register']);
|
||||
$app->delete('/unregister', [Mailboxes::class, 'unregister']);
|
||||
$app->get('/registered', [Mailboxes::class, 'registered']);
|
||||
$app->post('/register[/]', [Mailboxes::class, 'register']);
|
||||
$app->delete('/unregister[/]', [Mailboxes::class, 'unregister']);
|
||||
$app->get('/registered[/]', [Mailboxes::class, 'registered']);
|
||||
$app->get('[/]', Mailboxes::class);
|
||||
});
|
||||
|
||||
$app->group('/mailbox/{mailbox_id}', function($app) {
|
||||
$app->group('/messages', function($app) {
|
||||
$app->get('/valid[/]', [Messages::class, 'valid']);
|
||||
$app->get('[/]', Messages::class);
|
||||
});
|
||||
$app->get('[/]', [Mailboxes::class, 'get']);
|
||||
});
|
||||
|
@ -2,7 +2,7 @@
|
||||
use ProVM\Common\Controller\Attachments;
|
||||
|
||||
$app->group('/attachments', function($app) {
|
||||
$app->post('/get', [Attachments::class, 'get']);
|
||||
$app->put('/grab', [Attachments::class, 'grab']);
|
||||
$app->post('/decrypt', [Attachments::class, 'decrypt']);
|
||||
$app->get('[/]', Attachments::class);
|
||||
});
|
@ -1,8 +1,9 @@
|
||||
<?php
|
||||
use ProVM\Common\Controller\Messages;
|
||||
use ProVM\Common\Controller\Jobs;
|
||||
|
||||
$app->group('/messages', function($app) {
|
||||
$app->post('/valid', [Messages::class, 'valid']);
|
||||
$app->put('/grab', [Messages::class, 'grab']);
|
||||
$app->post('[/]', Messages::class);
|
||||
$app->put('/schedule', [Jobs::class, 'schedule']);
|
||||
$app->get('/pending', [Jobs::class, 'pending']);
|
||||
});
|
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
use ProVM\Common\Controller\Install;
|
||||
|
||||
$app->get('/install', Install::class);
|
4
api/resources/routes/99_base.php
Normal file
4
api/resources/routes/99_base.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
use ProVM\Common\Controller\Base;
|
||||
|
||||
$app->get('[/]', Base::class);
|
Reference in New Issue
Block a user