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

Stacked routes return wrong results with locals.send #217

@etsuo

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions