module.exports = function () {
const app = this;
app.use('/foo/:id', {
create(data, params) {
console.log(params.id); // problem
}
}
Expected result:
if I go to POST /foo/bar, params.id should be bar.
Actual result:
params.id is undefined.
Monkeypatch:
Don't use id. Using any other value for the parameter seems to work.