Add API docs for `loopback.static`.

This commit is contained in:
Miroslav Bajtoš 2014-11-03 09:20:54 +01:00
parent 2d0b74b007
commit 1c083f1030
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;