p5.js-web-editor/server/routes/aws.routes.js

13 lines
531 B
JavaScript
Raw Permalink Normal View History

2016-07-15 23:05:18 +00:00
import { Router } from 'express';
import * as AWSController from '../controllers/aws.controller';
import isAuthenticated from '../utils/isAuthenticated';
2016-07-15 23:05:18 +00:00
const router = new Router();
router.post('/S3/sign', isAuthenticated, AWSController.signS3);
router.post('/S3/copy', isAuthenticated, AWSController.copyObjectInS3RequestHandler);
2020-03-03 23:52:39 +00:00
router.delete('/S3/:userId?/:objectKey', isAuthenticated, AWSController.deleteObjectFromS3);
router.get('/S3/objects', AWSController.listObjectsInS3ForUserRequestHandler);
2016-07-15 23:05:18 +00:00
export default router;