We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efe6040 commit 076644fCopy full SHA for 076644f
lib/filehandler.js
@@ -16,7 +16,7 @@ module.exports = function (middleware, options) {
16
? 'application/json'
17
: 'text/plain'
18
});
19
- res.json(200, result);
+ res.status(200).json(result);
20
}
21
22
0 commit comments