Skip to content

Commit 6687015

Browse files
committed
feat(templates): move app.use(health()) to above bodyParser to imrpove performance of health check api
1 parent 68e2271 commit 6687015

File tree

1 file changed

+1
-1
lines changed
  • generators/app/templates/src

1 file changed

+1
-1
lines changed

generators/app/templates/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const dev = isDev();
1616

1717
// plug middleware
1818
app.use(morgan(dev ? 'dev' : 'common'));
19+
app.use(health());
1920
app.use(bodyParser.urlencoded({ extended: true }));
2021
app.use(bodyParser.json());
21-
app.use(health());
2222

2323
// plug components
2424
app.use(components.path, components.routes({ dev }));

0 commit comments

Comments
 (0)