strongloop/loopback-boot — pull request #66 by bajtos (2014-11-12 16:00:08+00:00)
Title: Load middleware and phases from `middleware.json`

Sample JSON:

{
"phases": ["routes"],
"middleware": {
"morgan": {
"phase": "routes:before",
"config": ["dev"]
}
}
}

The JSON file can be customized using the usual conventions:
- middleware.local.{js|json}
- middleware.{env}.{js|json}

A part of https://github.com/strongloop/loopback-boot/issues/44

/to @raymondfeng please review
/cc @ritch