15 lines
421 B
JavaScript
15 lines
421 B
JavaScript
import { Router } from 'express';
|
|
import * as SessionController from '../controllers/session.controller';
|
|
import passport from 'passport';
|
|
|
|
const router = new Router();
|
|
|
|
router.route('/login').post(SessionController.createSession);
|
|
|
|
router.route('/logout').get(SessionController.destroySession);
|
|
|
|
router.route('/session').get(SessionController.getSession);
|
|
|
|
export default router;
|
|
|
|
//TODO add github authentication stuff
|