I'm working with an application where we want to reason about portions of the application seperately, i.e. we have a seperate lambda for users, transactions, pictures or whatever.
This PR allows you to suggest what the "mount point"/"base path" is for the serverless application, so it knows to strip this from the incoming path.
If specified, it also strips the stage information from the path, so it can work offline and in the real world!
I'm working with an application where we want to reason about portions of the application seperately, i.e. we have a seperate lambda for users, transactions, pictures or whatever.
This PR allows you to suggest what the "mount point"/"base path" is for the serverless application, so it knows to strip this from the incoming path.
If specified, it also strips the stage information from the path, so it can work offline and in the real world!
Fixes https://github.com/dougmoscrop/serverless-http/issues/68
BEFORE:
serverless.yml
handler.js
request:
AFTER:
app.js
request