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

11 lines
371 B
JavaScript
Raw Permalink Normal View History

import { Router } from 'express';
import * as EmbedController from '../controllers/embed.controller';
const router = new Router();
router.get('/:username/embed/:project_id', EmbedController.serveProject);
2019-01-16 18:35:34 +01:00
router.get('/:username/present/:project_id', EmbedController.serveProject);
router.get('/embed/:project_id', EmbedController.serveProject);
export default router;