Open eldoy opened 7 months ago
In app/collections we define this:
app/collections
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.
In
app/collections
we define this:For each view, we do this:
Each view can only have one collection.