You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @eimhee
Rather than passing the harmon middleware straight as in https://github.com/No9/harmon/blob/master/examples/doge.js#L54
You will probably have to wrap it with your own middleware that applies your rules before passing it to harmon.
You can look at harmon code it's self to see how the middleware pattern works.
The key piece is that you make a module that returns a function that takes (req, res, next) https://github.com/No9/harmon/blob/master/index.js#L120
I want to only use harmon to replace something on homepage, how to specify the url?
The text was updated successfully, but these errors were encountered: