Skip to content

Trailing Slashes in route paths #285

Description

@godfoder

In restify 1.4 the following statement:

server.get('/:apiversion/:bucket', getList);

used to respond to both http://localhost/v1/records and http://localhost/v1/records/

In version 2.0, this no longer works by default, and in the little bit of trouble shooting I've done so far, I can't even seem to explicitly make it happen:

server.get('/:apiversion/:bucket/', getList);
server.get('/:apiversion/:bucket', getList);

Am I missing something really obvious here, or does restify no longer support trailing slashes on paths?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions