doomiwork 3.3.5 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,7 +65,7 @@ class controller {
65
65
  */
66
66
  createCRUDRoute(actionType,url,datakey,middleware){
67
67
  let instance = this;
68
- instance.router[actionType.method](url, middleware,async (req,res)=>{
68
+ instance.router[actionType.method](url, middleware ? middleware : (req, res, next)=>{return next()},async (req,res)=>{
69
69
  ////执行CRUD之前,可由继承的子类实现规则验证
70
70
  ////如果返回successed:false,则不再继续
71
71
  let beforeResult = await instance.beforeCRUD(actionType,req,res)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doomiwork",
3
- "version": "3.3.5",
3
+ "version": "3.4.0",
4
4
  "description": "doomisoft nodejs web framework",
5
5
  "main": "index.js",
6
6
  "scripts": {