Skip to content

Commit

Permalink
fixes the middleware syntax
Browse files Browse the repository at this point in the history
gmmeyer committed Jan 9, 2016
1 parent e177d52 commit 9a7f5e0
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ var moduleRoot = (function (_rootPath) {
* @api public
*/
var Keystone = function () {
grappling.mixin(this).allowHooks('pre:static', 'pre:bodyparser', 'pre:session', 'pre:routes', 'pre:render', 'updates', 'signout', 'signin', 'logger');
grappling.mixin(this).allowHooks('pre:static', 'pre:bodyparser', 'pre:session', 'pre:routes', 'pre:render', 'updates', 'signout', 'signin', 'pre:logger');
this.lists = {};
this.paths = {};
this._options = {
2 changes: 1 addition & 1 deletion server/createApp.js
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ module.exports = function createApp (keystone, express) {

// We should also allow custom logging middleware to exist in the normal middleware flow
app.use(function(req, res, next) {
keystone.callHook('logger', req, res, next);
keystone.callHook('pre:logger', req, res, next);
});

// unless the headless option is set (which disables the Admin UI),

0 comments on commit 9a7f5e0

Please sign in to comment.