p5.js-web-editor/server/routes/session.routes.js
2016-06-20 17:47:46 -04:00

20 lines
570 B
JavaScript

import { Router } from 'express';
import * as SessionController from '../controllers/session.controller';
<<<<<<< HEAD
import passport from 'passport';
=======
>>>>>>> add framework for sessions
const router = new Router();
router.route('/login').get(SessionController.newSession);
<<<<<<< HEAD
router.route('/login').post(SessionController.createSession);
router.route('/logout').get(SessionController.destroySession);
//TODO add github authentication stuff
=======
router.route('/logout').get(SessionController.destroySession);
>>>>>>> add framework for sessions