Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New filter type: server_middleware #665

Merged
merged 4 commits into from
Jun 12, 2014
Merged

New filter type: server_middleware #665

merged 4 commits into from
Jun 12, 2014

Conversation

tommy351
Copy link
Member

@tommy351 tommy351 commented Jun 6, 2014

I added a new type of filter: server_middleware. The new filter type helps you customize server middlewares. For example:

hexo.extend.filter.register('server_middleware', function(app){
  app.use(function(req, res, next){
    res.setHeader('X-Powered-By', 'Hexo');
    next();
  });
});

@tommy351 tommy351 added this to the 2.7 milestone Jun 6, 2014
@tommy351 tommy351 merged commit 8f0bcc0 into dev Jun 12, 2014
@tommy351 tommy351 deleted the feature/server-middleware branch June 12, 2014 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant