Plugin implementation.
Plugin implementation.
Parameters:
Name | Type | Description |
---|---|---|
fastify |
object | Fastify instance |
options |
object | plugin configuration options
|
done |
function | callback, to call as last step |
Methods
(inner) faviconRequestHandler(filenon-null) → {function}
Factory for the request handler for the favicon.
Factory for the request handler for the favicon.
Parameters:
Name | Type | Description |
---|---|---|
file |
object | the icon file to send in the response |
Returns:
the handler function, preconfigured with plugin settings and the file to send
- Type
- function