2f72006c88
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 |
||
---|---|---|
.. | ||
appdir.js | ||
push-name-middleware.js | ||
sandbox.js |