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
|
|
|
<<<<<<< HEAD
|
2016-05-18 17:37:59 +00:00
|
|
|
import passport from 'passport';
|
2016-05-13 20:49:56 +00:00
|
|
|
|
2016-05-13 20:49:56 +00:00
|
|
|
=======
|
|
|
|
>>>>>>> add framework for sessions
|
2016-05-13 20:49:56 +00:00
|
|
|
const router = new Router();
|
|
|
|
|
|
|
|
router.route('/login').get(SessionController.newSession);
|
|
|
|
|
2016-05-13 20:49:56 +00:00
|
|
|
<<<<<<< HEAD
|
2016-05-17 19:50:37 +00:00
|
|
|
router.route('/login').post(SessionController.createSession);
|
|
|
|
|
2016-05-18 17:37:59 +00:00
|
|
|
router.route('/logout').get(SessionController.destroySession);
|
|
|
|
|
2016-05-13 20:49:56 +00:00
|
|
|
//TODO add github authentication stuff
|
2016-05-13 20:49:56 +00:00
|
|
|
=======
|
|
|
|
router.route('/logout').get(SessionController.destroySession);
|
|
|
|
>>>>>>> add framework for sessions
|