Module ringo/middleware/static
Middleware for serving static resources.
Functions
- middleware(config)
middleware (config)
Middleware for serving static resources.
Configuration properties
Theconfig object may contain the following properties:
base: the base resource directory (required)index: the name of a file to serve if the path matches a directory (e.g. "index.html")
Parameters
| Object | config | configuration properties |
Returns
| Function | a function that can be used to wrap a JSGI app |
