Skip to content

Correctly route requests that contain colons within a path segment #162

@seanprince

Description

@seanprince

If a Swagger definition defines 2 paths of the form:

POST /myresource:validate
POST /myresource:batchRetrieve

The requests to these two endpoints are routed to the incorrect handler.

This is because makeRecords in middleware/denco/router.go interprets the presence of any colon in the path as a path parameter, rather than a static path in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions