Load relationShips

This commit is contained in:
2021-08-23 18:34:17 +02:00
parent 03d084fb3d
commit 404ae3ac39

View File

@@ -56,6 +56,9 @@ export default class PostsController {
await post.load('tags', (tags) => {
tags.preload('label')
})
await post.load('cover')
await post.load('description')
await post.load('title')
return response.status(200).send({
post
})