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

Model optional path parameters #15

Open
danvk opened this issue Apr 8, 2021 · 0 comments
Open

Model optional path parameters #15

danvk opened this issue Apr 8, 2021 · 0 comments

Comments

@danvk
Copy link
Owner

danvk commented Apr 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant