p5.js-web-editor/server/routes/asset.routes.js
2017-11-28 14:48:50 -05:00

11 lines
365 B
JavaScript

import { Router } from 'express';
import { getProjectAsset } from '../controllers/project.controller';
import { getFileContent } from '../controllers/file.controller';
const router = new Router();
router.route('/:username/sketches/:project_id/*').get(getProjectAsset);
router.route('/sketches/:project_id/assets/*?').get(getFileContent);
export default router;