Simple search middleware for Express
/api/search
(POST) and expects a body.No config implemented
const search = require('./middleware/search');
this.server.use(search(this, this.config.search));
{
"search": {
"enabled": false,
"collections": [],
"conditions": {}
}
}
{
"term": "A search term",
"collections": [],
"conditions": {}
}
Collections and conditions are optional
No links available
Last modified | Friday, April 30, 2021, 12:00:21 PM UTC |
Last author | Colin van Eenige |
Commit ID | 4c7a701 |