jm-server-middleware
v1.0.1
Published
middlewares for jm-server
Downloads
5
Maintainers
Readme
应用中间件 jm-server-middleware
middlewares for jm-server
安装
npm i jm-server-middleware
使用
const { sequelize } = require('jm-server-middleware')
中间件定义和使用
function validator(opts){
const app = this
return {app}
}
中间件清单
sequelize
create restful mapper for sequelize schemas defined.
module.exports = {
modules: {
orm: {
module: 'jm-server-middleware',
jsonpath: '$.sequelize',
config: {
uri: 'mysql://root:[email protected]/main'
}
}
}
}