expressのreq.path
というのが追加されてる
Added shorthand for the parsed request's pathname · expressjs/express@d10b7b4 · GitHub
require('url').parse(req.url).pathname
のショートハンドらしい。
というのが追加されてる
Added shorthand for the parsed request's pathname · expressjs/express@d10b7b4 · GitHub
require('url').parse(req.url).pathname
のショートハンドらしい。