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

12 lines
No EOL
393 B
JavaScript

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