RubyGems
npm
PyPI
Organizations
Log in
Sign up
npm
chanjs
Versions diffs
1.0.17 → 1.0.20
chanjs 1.0.17 → 1.0.20
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
package/core/lib/core.js
+1
-1
package/package.json
+1
-1
package/core/lib/core.js
CHANGED
Viewed
@@ -32,7 +32,7 @@ module.exports = async function (app) {
32
32
);
33
33
34
34
//设置头信息
35
-
app.
all
(
"/",
(req, res, next) => {
35
+
app.
use
((req, res, next) => {
36
36
res.setHeader("mvc", "Chanjs");
37
37
res.setHeader("X-Powered-By", appName);
38
38
res.setHeader(appName, version);
package/package.json
CHANGED
Viewed
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "chanjs",
3
-
"version": "1.0.
17
",
3
+
"version": "1.0.
20
",
4
4
"description": "Chan.js基于express 纯js研发的轻量级mvc框架。",
5
5
"main": "core/chan.js",
6
6
"module": "core/chan.js",