2016-07-16 01:05:18 +02:00
|
|
|
import { Router } from 'express';
|
|
|
|
import * as AWSController from '../controllers/aws.controller';
|
|
|
|
|
|
|
|
const router = new Router();
|
|
|
|
|
|
|
|
router.route('/S3/sign').post(AWSController.signS3);
|
2017-03-23 19:23:54 +01:00
|
|
|
router.route('/S3/copy').post(AWSController.copyObjectInS3);
|
2017-03-30 22:52:36 +02:00
|
|
|
router.route('/S3/:object_key').delete(AWSController.deleteObjectFromS3);
|
2017-07-11 17:37:43 +02:00
|
|
|
router.route('/S3/:username/objects').get(AWSController.listObjectsInS3ForUser);
|
2016-07-16 01:05:18 +02:00
|
|
|
|
|
|
|
export default router;
|