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

10 lines
396 B
JavaScript
Raw Normal View History

import { Router } from 'express';
import * as FileController from '../controllers/file.controller';
const router = new Router();
router.route('/projects/:project_id/files').post(FileController.createFile);
2016-08-24 21:59:15 +00:00
router.route('/projects/:project_id/files/:file_id').delete(FileController.deleteFile);
router.route('/projects/:project_id/*?').get(FileController.getFileContent);
export default router;