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);
|
2016-07-15 23:05:18 +00:00
|
|
|
|
|
|
|
export default router;
|