Skip to content

Updating getAssetName function signature to include req and res objects

Compare
Choose a tag to compare
@mirandawang mirandawang released this 19 Feb 15:06
· 28 commits to master since this release

Improvements

Updated function signature for getAssetName so that it can take in req and res as params in addition to requestPath. This allows for the usage of any information in the request or response objects in that function, for example, res.locals which may contain variables inserted by other middleware.

Docs

Updated README for getAssetName with new function signature and default implementation.