eldoy / waveorb

Javascript web app development framework
https://waveorb.com
MIT License
5 stars 0 forks source link

Brainmatter extensions with view islands #147

Open eldoy opened 7 months ago

eldoy commented 7 months ago

In app/collections we define this:

module.exports = async function findPosts($) {
  var posts = await db('post').find()
  return posts
}

For each view, we do this:

---
filters = [authenticate, require_admin]
setups = [authenticate]
validators = [validate_posts]
posts = findPosts
---

Each view can only have one collection.