Middleware
Dubnium has built-in Express middleware functions to manage Records. Data is never sent to the client without your permission.
Parameters
Parameter
About
Type
Required
Methods
Create
app.get('/new', db.middleware.create({ from:"query", key:"tag" }, { from:"query", key:"content" }), (req, res) => {
// Creates a record with the tag and content from the query
})Get
app.get('/:tag', db.middleware.get({ from:"params", key:"tag" }), (req, res) => {
// Access the record directly from req.record, if it exists
})DB
Delete
Edit
Other
Full Example
Last updated