core
core copied to clipboard
Stacked routes return wrong results with locals.send
@Route({
method: 'get',
path: ':id'
})
async getById(req, res, next) {
if(req.params.id === 'suggestions') {
return;
}
}
@Route({
method: 'get',
path: '/suggestions'
})
async getById(req, res, next) {
res.locals.send(OK, []);
}
GET /suggestions returns {} instead of []