Updating getAssetName function signature to include req and res objects
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.