2016-07-15 23:05:18 +00: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 18:23:54 +00:00
|
|
|
router.route('/S3/copy').post(AWSController.copyObjectInS3);
|
2017-03-30 20:52:36 +00:00
|
|
|
router.route('/S3/:object_key').delete(AWSController.deleteObjectFromS3);
|
2017-07-11 15:37:43 +00:00
|
|
|
router.route('/S3/:username/objects').get(AWSController.listObjectsInS3ForUser);
|
2016-07-15 23:05:18 +00:00
|
|
|
|
|
|
|
export default router;
|