MCPcopy Create free account
hub / github.com/expressjs/session / mountAt

Function mountAt

test/session.js:2691–2698  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

2689}
2690
2691function mountAt (path) {
2692 return function (req, res) {
2693 if (req.url.indexOf(path) === 0) {
2694 req.originalUrl = req.url
2695 req.url = req.url.slice(path.length)
2696 }
2697 }
2698}
2699
2700function shouldNotHaveHeader(header) {
2701 return function (res) {

Callers 1

session.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected