Skip to content

Model optional path parameters #15

@danvk

Description

@danvk

Express paths can include optional parameters, e.g. /users/:userId/posts/:postId?. This should be modeled in the types.

See https://expressjs.com/en/guide/routing.html#route-paths
https://twitter.com/ryanastelly/status/1301883392116633604

I'm quite confident I read a blog post about doing this, but I'm having trouble finding it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions