felid-serve
A Felid plugin for sending static files.
Install
npm install felid-serve
or
yarn add felid-serve
Usage
const Felid = const serve = const app = app app
Options
- decorator Object: Customize the decorator names. Default is:
serve: 'serve'
For more options, please check send.
Some has default values:
- root: default to the directory where node runs.
Api
- response.serve(path: String, options: Object): Serve the given file. The options passed here will override the plugin options.