mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Load relationShips
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user