add react router
This commit is contained in:
parent
eec7987c70
commit
ba1cf0c644
1 changed files with 7 additions and 0 deletions
|
@ -1,7 +1,10 @@
|
|||
import { Router } from 'express';
|
||||
import * as SessionController from '../controllers/session.controller';
|
||||
import passport from 'passport';
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
>>>>>>> add react router
|
||||
const router = new Router();
|
||||
|
||||
router.route('/login').get(SessionController.newSession);
|
||||
|
@ -10,4 +13,8 @@ router.route('/login').post(SessionController.createSession);
|
|||
|
||||
router.route('/logout').get(SessionController.destroySession);
|
||||
|
||||
<<<<<<< HEAD
|
||||
//TODO add github authentication stuff
|
||||
=======
|
||||
//TODO add github authentication stuff
|
||||
>>>>>>> add react router
|
||||
|
|
Loading…
Reference in a new issue