xzwebx-httpfilter 2.2.7 → 2.2.8

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.
Files changed (2) hide show
  1. package/HttpFilter.js +10 -0
  2. package/package.json +5 -2
package/HttpFilter.js CHANGED
@@ -75,6 +75,16 @@ Fun.SetRoutes = function(app, express, projectPath) {
75
75
  app.use(ModuleMap[uri].uri, router)
76
76
  }
77
77
  }
78
+ Fun.SetMsg = function(req, res, next) {
79
+ res.Msg = response
80
+ return next()
81
+ }
82
+
83
+ Fun.SetCheckUrl = function(app) {
84
+ let p = ConfigMap[app.get('_PORT_')]
85
+ app.use(p.setMsg.bind(p))
86
+ app.use(p.checkUrl.bind(p))
87
+ }
78
88
 
79
89
  class http {
80
90
  constructor(){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xzwebx-httpfilter",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "main": "HttpFilter.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -12,5 +12,8 @@
12
12
  ],
13
13
  "author": "xzwebx",
14
14
  "license": "ISC",
15
- "description": ""
15
+ "description": "",
16
+ "publishConfig": {
17
+ "registry": "https://registry.npmjs.org/"
18
+ }
16
19
  }