We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f67b776 + 3a0867c commit 9ef1ce7Copy full SHA for 9ef1ce7
app.js
@@ -16,8 +16,6 @@ var app = express();
16
app.set('views', path.join(__dirname, 'views'));
17
app.set('view engine', 'ejs');
18
19
-app.use(express.static('public'));
20
-
21
// 设置默认超时时间
22
app.use(timeout('15s'));
23
@@ -28,6 +26,8 @@ app.enable('trust proxy');
28
26
// 需要重定向到 HTTPS 可去除下一行的注释。
29
27
// app.use(AV.Cloud.HttpsRedirect());
30
+app.use(express.static('public'));
+
31
app.use(bodyParser.json());
32
app.use(bodyParser.urlencoded({ extended: false }));
33
app.use(cookieParser());
0 commit comments