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

10 lines
341 B
JavaScript

import { Router } from 'express';
import * as AWSController from '../controllers/aws.controller';
const router = new Router();
router.route('/S3/sign').post(AWSController.signS3);
router.route('/S3/copy').post(AWSController.copyObjectInS3);
router.route('/S3/:object_key').delete(AWSController.deleteObjectFromS3);
export default router;