Merge pull request #726 from strongloop/feature/apidocs-for-loopback.static

Add API docs for `loopback.static`.
This commit is contained in:
Miroslav Bajtoš 2014-11-03 18:33:41 +01:00
commit f8c5fc8f6a
2 changed files with 12 additions and 0 deletions

View File

@ -12,6 +12,7 @@
"lib/middleware/status.js",
"lib/middleware/token.js",
"lib/middleware/urlNotFound.js",
"lib/middleware/static.js",
{ "title": "Built-in models", "depth": 2 },
"common/models/access-token.js",
"common/models/acl.js",

11
lib/middleware/static.js Normal file
View File

@ -0,0 +1,11 @@
/**
* Serve static assets of a LoopBack application.
*
* @param {string} root The root directory from which the static assets are to
* be served.
* @param {object} options Refer to
* [express documentation](http://expressjs.com/4x/api.html#express.static)
* for the full list of available options.
* @header loopback.static(root, [options])
*/
module.exports = require('express').static;