Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Commit 9061886

Browse files
fix(slugController): incorrect relation response (#42)
Resolves #40
1 parent 09a279d commit 9061886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/controllers/slug-controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = ({ strapi }) => ({
4040

4141
if (data) {
4242
const sanitizedEntity = await sanitizeOutput(data, contentType, auth);
43-
ctx.body = transformResponse(sanitizedEntity);
43+
ctx.body = transformResponse(sanitizedEntity, {}, { contentType });
4444
} else {
4545
throw new NotFoundError();
4646
}

0 commit comments

Comments
 (0)