static
安装
npm i @luobotang/koa-static
配置
module.exports = {
static: {
root: '/static/root/path',
// other options to '[koa-static](https://www.npmjs.com/package/koa-static)'
}
}
使用
router.use(middlewares.static)
npm i @luobotang/koa-static
module.exports = {
static: {
root: '/static/root/path',
// other options to '[koa-static](https://www.npmjs.com/package/koa-static)'
}
}
router.use(middlewares.static)
npm i @koa-framework/koa-static
1
0.3.0
MIT
887 B
3