strongloop/loopback-workspace — pull request #169 by bajtos (2014-11-27 19:23:39+00:00)
Title: template/api-server: introduce middleware.json

Rework the scaffolded server app to register middleware via
the new `middleware.json` file.

Note: `serve-static` is kept inside `server/server.js` for now,
as there isn't any mechanism for resolving paths in middleware config
specified in `middleware.json`. I will fix this later.

/to @ritch @raymondfeng please review