NamesMT / lambda-voie

A very opinionated AWS Lambda router
MIT License
0 stars 0 forks source link

`defaultRoute` with `passThrough=true` throw error on empty `routeKey` and `rawPath` #1

Closed NamesMT closed 8 months ago

NamesMT commented 8 months ago

Currently both empty routeKey and rawPath is expected to throw an error (as declared in index.test.ts),
However, by logic, if we use passThrough, it should pass everything down to the defaultRoute (legacy code) to handle, including empty route-indentifing keys, because they could use some other prop to process through sdk invokation or Lambda's Test Invoke.