2022-11-09 15:20:04 -03:00
|
|
|
<?php
|
|
|
|
use ProVM\Common\Controller\Attachments;
|
|
|
|
|
|
|
|
$app->group('/attachments', function($app) {
|
2022-11-28 22:56:21 -03:00
|
|
|
$app->put('/grab', [Attachments::class, 'grab']);
|
2022-11-09 15:20:04 -03:00
|
|
|
$app->post('/decrypt', [Attachments::class, 'decrypt']);
|
|
|
|
$app->get('[/]', Attachments::class);
|
2022-11-29 11:12:06 -03:00
|
|
|
});
|
|
|
|
$app->group('/attachment/{attachment_id}', function($app) {
|
|
|
|
$app->get('[/]', [Attachments::class, 'get']);
|
2022-11-09 15:20:04 -03:00
|
|
|
});
|