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.
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.