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

13 lines
325 B
JavaScript
Raw Normal View History

2016-05-13 20:49:56 +00:00
import { Router } from 'express';
import * as SessionController from '../controllers/session.controller';
2016-05-13 20:49:56 +00:00
2016-05-13 20:49:56 +00:00
const router = new Router();
router.route('/login').post(SessionController.createSession);
router.route('/session').get(SessionController.getSession);
2016-06-14 20:48:16 +00:00
export default router;
2016-06-23 22:29:55 +00:00
// TODO add github authentication stuff