13 lines
429 B
PHP
13 lines
429 B
PHP
<?php
|
|
use ProVM\Common\Controller\Attachments;
|
|
|
|
$app->group('/attachments', function($app) {
|
|
$app->put('/grab', [Attachments::class, 'grab']);
|
|
$app->get('/pending', [Attachments::class, 'pending']);
|
|
$app->post('/decrypt', [Attachments::class, 'decrypt']);
|
|
$app->get('[/]', Attachments::class);
|
|
});
|
|
$app->group('/attachment/{attachment_id}', function($app) {
|
|
$app->get('[/]', [Attachments::class, 'get']);
|
|
});
|