The URL pathname from the request URL string of the current request (req
). Note that this is the part of the URL after and including the leading slash (e.g. /foo/bar
), but without the query string (e.g. ?name=foo
) or fragment (e.g. #foobar
.)
req.path;
Assuming a client sends the following request:
req.path
will be defined as follows:
req.path;
// -> "/donor/37"