-
-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
I faced an issue while working with this awesome micro framework.
Some third-party middlewares relies on req.originalUrl to work. Example: https://www.npmjs.com/package/session-middleware
I had to add an extra middlware to solve this problem.
service.use((req,res, next) => {
if (!req.originalUrl)
req.originalUrl = req.url
next()
})
It worked for my case, but it would be good to have this property in the req object as well.
I checked express and sails and both have this property in req object.
Do you think it is possible to have it available?
Metadata
Metadata
Assignees
Labels
No labels