We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddeada3 commit 624f1edCopy full SHA for 624f1ed
lib/deserialize.js
@@ -25,7 +25,7 @@ module.exports = function (app, options) {
25
return regex.test(ctx.method.name);
26
});
27
28
- if (matches.length > 0) {
+ if (utils.shouldApplyJsonApi(ctx, options) || matches.length > 0) {
29
// set the JSON API Content-Type response header
30
ctx.res.set({'Content-Type': 'application/vnd.api+json'});
31
0 commit comments