loopback-boot/test/helpers
Raymond Feng 2f72006c88 Implement shorthand notation for middleware paths
When the middleware name (path) is in the format {module}#{filename},
loopback-boot resolves the path by trying multiple locations and
using the first one that exists:

 - {module} and check the {filename} property of the exports
     -> e.g. loopback.rest
- {module}/server/middleware/{filename}
    -> e.g. loopback/server/middleware/rest
 - {module}/middleware/{filename}
    -> e.g. loopback/middleware/rest

Values in any other format will bypass this resolution algorithm and
they will be used in the original form:

 - a full path in a module: loopback/server/middleware/rest
 - a relative path: ./middleware/custom, ./custom, ../logger
 - an absolute path: /usr/local/lib/node_modules/compression
2014-11-25 11:43:00 +01:00
..
appdir.js Implement shorthand notation for middleware paths 2014-11-25 11:43:00 +01:00
push-name-middleware.js Load middleware and phases from `middleware.json` 2014-11-19 09:45:04 +01:00
sandbox.js Load datasources and app cfg from multiple files 2014-05-27 14:08:58 +02:00