p5.js-web-editor/server/routes/session.routes.js

14 lines
395 B
JavaScript
Raw Normal View History

2016-05-13 22:49:56 +02:00
import { Router } from 'express';
import * as SessionController from '../controllers/session.controller';
2016-05-18 19:37:59 +02:00
import passport from 'passport';
2016-05-13 22:49:56 +02:00
2016-05-13 22:49:56 +02:00
const router = new Router();
router.route('/login').get(SessionController.newSession);
router.route('/login').post(SessionController.createSession);
2016-05-18 19:37:59 +02:00
router.route('/logout').get(SessionController.destroySession);
2016-05-13 22:49:56 +02:00
//TODO add github authentication stuff