We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b03f479 commit b301286Copy full SHA for b301286
1 file changed
templates/src/web.ts
@@ -15,7 +15,7 @@ export const app = new WebApp({
15
language: 'zh_CN',
16
mount: [
17
httpLogger,
18
- responseTime,
+ responseTime(),
19
slowTrace,
20
cors(),
21
compress(),
@@ -34,7 +34,7 @@ if (cluster.isWorker) {
34
app.on('error', (err, ctx) => {
35
logger.error(err.stack!);
36
ctx.response.body = {
37
- status: ctx.response.statusCode,
+ code: ctx.response.statusCode,
38
message: ctx.response.body,
39
};
40
});
0 commit comments