Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Stacked routes return wrong results with locals.send #217

Open
etsuo opened this issue Jun 18, 2018 · 0 comments
Open

Stacked routes return wrong results with locals.send #217

etsuo opened this issue Jun 18, 2018 · 0 comments
Labels
Milestone

Comments

@etsuo
Copy link
Member

etsuo commented Jun 18, 2018

@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 []

@etsuo etsuo added the bug label Jun 18, 2018
@etsuo etsuo added this to the 0.18.0 milestone Jun 18, 2018
@etsuo etsuo modified the milestones: 0.18.0, 0.19.0 Jul 25, 2018
@etsuo etsuo modified the milestones: 0.19.0, next Aug 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant