Skip to content

Commit 48f41d8

Browse files
dead-horsefengmk2
authored andcommitted
feat: only add error handler for api (#6)
1 parent af487f9 commit 48f41d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cnode-api/config/config.default.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@ module.exports = appInfo => {
88

99
config.middleware = [ 'errorHandler' ];
1010

11+
config.errorHandler = {
12+
match: '/api',
13+
};
14+
1115
return config;
1216
};

0 commit comments

Comments
 (0)