QQ. I need to have some required and optional path...
# help
a
QQ. I need to have some required and optional path params for a Lambda and wondering how best to implement this. For example, in Node + Express one might refine a route like
/someResource/:someId/:optionalThing?/:otherOptionalThing?
What are people generally doing with SST? Thanks!
t
unfortunately ApiGateway doesn't have the concept of optional path params, you have to define every combination of these
Copy code
GET /resource/:someId
GET /resource/:someId/:optionalThing

GET /resource/:someId/:optionalThing/:otherOptionalThing
a
Thanks!