diff options
| author | HumairAK <humair88@hotmail.com> | 2016-07-27 18:02:13 +0000 |
|---|---|---|
| committer | HumairAK <humair88@hotmail.com> | 2016-07-27 18:02:13 +0000 |
| commit | 189c183337cf3281056d313c4724536e450a46fd (patch) | |
| tree | 11e0a22dda0bcd3ecd4f5f306e72ee8813817887 /routes/user.js | |
| parent | b19b2306723289e511efdbeae451612ab09bba6f (diff) | |
fixed tests to work again, added db connectivity, moved dbtests folder out so as not to interfere with mocha recursive search
Diffstat (limited to 'routes/user.js')
| -rw-r--r-- | routes/user.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/routes/user.js b/routes/user.js index ac9494f..a373393 100644 --- a/routes/user.js +++ b/routes/user.js @@ -158,13 +158,11 @@ router.get('/signin', loggedOut, function (req, res, next) { }); }); - /** Render/GET verification page. */ router.get('/verify', function(req, res, next) { res.render('verification', {noHeader: true, noFooter: true}); }); - /** Retrieves infomation from the signup form, form validates and sends it to passport.js to authenticate. */ router.post('/signup', loggedOut, function(req, res, next) { req.assert('fname', 'Please enter a valid first name.').notEmpty().withMessage('First name required.').isAlpha(); @@ -382,7 +380,6 @@ router.post('/solution/vote/:examID/:qID/:solID', function(req, res, next){ }); - /** * Retrieves information about the exam following button, redirects if there is an error, and shows an error alert * if the user is not logged in. @@ -411,9 +408,6 @@ router.post('/follow_exam/:examID',function (req, res) { } }); - - - module.exports = router; /************** Route protection ********************/ |
