Closed tomhallam closed 5 years ago
@dougmoscrop please see latest PR. Have resolved the issues mentioned in the previous one, which can now be deleted.
Thanks, seems simple and useful, I don't think it will solve everyones problems (especially when building URLs programatically) but it's a good start and non-invasive!
Great. Scratched one of my itches with the library so hopefully it'll help others.
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 #68
BEFORE:
serverless.yml
handler.js
request:
AFTER:
app.js
request