return page
This commit is contained in:
parent
156514e067
commit
d995cc428c
1 changed files with 3 additions and 1 deletions
|
|
@ -2243,7 +2243,8 @@ module.exports = async (
|
|||
const posts = flatten(results)
|
||||
|
||||
return res.status(200).json({
|
||||
posts
|
||||
posts,
|
||||
page: idx
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -2253,6 +2254,7 @@ module.exports = async (
|
|||
|
||||
return res.status(205).json({
|
||||
posts: results[0] || []
|
||||
,page: 1
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue