carte
v0.0.3
Published
A Connect middleware that finds all documents in a MongoDB collection.
Downloads
448
Readme
Carte
Menu from Mongo collection middleware.
Usage :
carte = require("carte");
...
app.use(carte());
Or
app.use(carte({
sort : sorting_field
fields : [fields, to, get]
}));
By default, documents are sorted by position
and available fields are route
and title
.