From 7f3db0e09484dce320bd87cb3d5efc6f1d953c7b Mon Sep 17 00:00:00 2001 From: Noah Isaacson Date: Thu, 26 Sep 2013 14:03:06 -0600 Subject: [PATCH] Change: add note about middleware function to readme. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 356e753..278aefa 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,9 @@ var requiredParams = { // 0 = server will assign a port. Can be any port number name: 'My server', // used in logging and if someone does curl --head http://your-server.com/ - routes: aFunctionThatWillBeCalledToConfigureRoutes + routes: aFunctionThatWillBeCalledToConfigureRoutes, // will be called with opts that include opts.server == + middleware: aFunctionWhichWillSetAllMiddleware // optionally set all middleware manually. will be called with a "server" parameter } var optionalParams = {