@david hey man, ìn my express server I think I got the endpoint for the posts set up, but now I worry of it not being exactly secure. Is the following okay by itself or do I need to do something else?
```
router.post('/retrievePosts', function(req, res)) {
var posts = Post.paginate({}, {
page: page(),
limit: 10
}, function(err, result) {
console.log(result.docs)
res.send(result.docs)
})
}
```
```
router.post('/retrievePosts', function(req, res)) {
var posts = Post.paginate({}, {
page: page(),
limit: 10
}, function(err, result) {
console.log(result.docs)
res.send(result.docs)
})
}
```