Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Commit

Permalink
removing extraneous inline auth middleware which is now registered vi…
Browse files Browse the repository at this point in the history
…a meddleware
  • Loading branch information
grawk committed Dec 8, 2014
1 parent 940c685 commit 14e931e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
.idea/
.build
*.log
node_modules/
*/**/.DS_Store
2 changes: 1 addition & 1 deletion controllers/index.js
Expand Up @@ -24,7 +24,7 @@ module.exports = function (router) {
});


router.get('/admin', auth.isAuthenticated('admin'), auth.injectUser(), function(req, res) {
router.get('/admin', function(req, res) {
res.render('admin', adminmodel);
});

Expand Down

0 comments on commit 14e931e

Please sign in to comment.