1.0.0 • Published 8 months ago
@jacksontian/plant_favicon v1.0.0
favicon middleware
This is a favicon middleware of plant web framework.
The logic of this middleware is to check if the request is a favicon request, if so, return the favicon file.
Installation
npm i @jacksontian/plant-faviconUsage
Add the favicon middleware to your middleware list.
import favicon from '@jacksontian/plant_favicon';
export default [
favicon
];The middleware.js is under the app directory.
License
The MIT license.
1.0.0
8 months ago