2016-07-16 01:05:18 +02:00
|
|
|
import { Router } from 'express';
|
|
|
|
import * as AWSController from '../controllers/aws.controller';
|
2018-01-09 21:57:49 +01:00
|
|
|
import isAuthenticated from '../utils/isAuthenticated';
|
2016-07-16 01:05:18 +02:00
|
|
|
|
|
|
|
const router = new Router();
|
|
|
|
|
2018-01-09 21:57:49 +01:00
|
|
|
router.post('/S3/sign', isAuthenticated, AWSController.signS3);
|
2020-07-18 01:09:23 +02:00
|
|
|
router.post('/S3/copy', isAuthenticated, AWSController.copyObjectInS3RequestHandler);
|
2020-03-04 00:52:39 +01:00
|
|
|
router.delete('/S3/:userId?/:objectKey', isAuthenticated, AWSController.deleteObjectFromS3);
|
2019-08-08 23:34:49 +02:00
|
|
|
router.get('/S3/objects', AWSController.listObjectsInS3ForUserRequestHandler);
|
2016-07-16 01:05:18 +02:00
|
|
|
|
|
|
|
export default router;
|