jm-ms-middleware
v1.0.2
Published
middlewares for jm-ms
Downloads
7
Readme
路由中间件 jm-ms-middleware
middlewares for jm-ms
安装
npm i jm-ms-middleware
使用
const { sequelize } = require('jm-ms-middleware')
中间件定义和使用
function validator(opts){
return async function (opts){
}
}
中间件清单
sequelize
create restful mapper for a sequelize model.
router
.use(sequelize.order())
.use(sequelize.fields())
.use(sequelize.filter('conditions','crtime','code'))
.use(sequelize.resful(model))
toArray
router.use(toArray('files', 'tags'))