Skip to content

Instantly share code, notes, and snippets.

@pleerock
Last active May 17, 2016 08:44
Show Gist options
  • Save pleerock/db726594c4efb6df97bed4a1a225dd83 to your computer and use it in GitHub Desktop.
Save pleerock/db726594c4efb6df97bed4a1a225dd83 to your computer and use it in GitHub Desktop.
createExpressServer({
controllerDirs: [__dirname + "/controllers"], // loads all controllers from the given directories. supports glob patterns
middlewareDirs: [__dirname + "/middlewares"], // loads all middlewares from the given directories. supports glob patterns
errorHandlerDirs: [__dirname + "/error-handlers"] // loads all error handlers from the given directories. supports glob patterns
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment