p5.js-web-editor/server/routes/session.routes.js
2016-06-23 18:29:55 -04:00

12 lines
325 B
JavaScript

import { Router } from 'express';
import * as SessionController from '../controllers/session.controller';
const router = new Router();
router.route('/login').post(SessionController.createSession);
router.route('/session').get(SessionController.getSession);
export default router;
// TODO add github authentication stuff