Skip to content

Commit

Permalink
mount: prefer static over runtime function definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Apr 27, 2015
1 parent 81523af commit 9232d0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/core/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ function routes(app) {
debug('setting up auth');
app.all('/keystone*', this.get('auth'));
}
var initList = function(respectHiddenOption) {

function initList(respectHiddenOption) {
return function(req, res, next) {
req.list = keystone.list(req.params.list);

Expand All @@ -64,8 +64,8 @@ function routes(app) {
debug('getting list ', req.params.list);
next();
};
};
}

debug('setting keystone Admin Route');
app.all('/keystone', require('../../routes/views/home'));

Expand Down

0 comments on commit 9232d0d

Please sign in to comment.