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

13 lines
377 B
JavaScript
Raw Normal View History

2016-06-17 20:11:52 +02:00
import { Router } from 'express';
import * as ProjectController from '../controllers/project.controller';
const router = new Router();
router.route('/projects').post(ProjectController.createProject);
2016-06-19 00:33:49 +02:00
router.route('/projects/:project_id').put(ProjectController.updateProject);
router.route('/projects/:project_id').get(ProjectController.getProject);
2016-06-24 00:29:55 +02:00
export default router;