Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant