p5.js-web-editor/server/routes/session.routes.js
2016-08-27 20:46:20 -04:00

14 lines
389 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);
router.route('/logout').get(SessionController.destroySession);
export default router;
// TODO add github authentication stuff