We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bcc162 commit cb08ab3Copy full SHA for cb08ab3
server/index.js
@@ -11,6 +11,7 @@ const config = require('config');
11
const app = express();
12
app.use(helmet());
13
console.log((config.injectDevelopmentTools && config.injectDevelopmentTools(app)) || `当前环境 ${process.env.NODE_ENV}`);
14
+app.use(main); // 路由入口
15
const options = {
16
dotfiles: 'ignore',
17
etag: true,
@@ -20,7 +21,7 @@ const options = {
20
21
redirect: false,
22
};
23
app.use(express.static(path.resolve(__dirname, '../public'), options));
-app.use('/', main);
24
+
25
/* eslint-disable */
26
app.use((err, req, res, next) => {
27
res.json({
0 commit comments