mirror of
https://github.com/ragestudio/comty.git
synced 2025-07-09 17:24:16 +00:00
13 lines
249 B
JavaScript
13 lines
249 B
JavaScript
import Posts from "@classes/posts"
|
|
|
|
export default {
|
|
useMiddlewares: ["withAuthentication"],
|
|
fn: async (req) => {
|
|
return await Posts.getSaved({
|
|
page: req.query.page,
|
|
limit: req.query.limit,
|
|
user_id: req.auth.session.user_id,
|
|
})
|
|
},
|
|
}
|