Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/github/docs
/ middleware
Function
middleware
middleware/block-robots.js:24–27 ·
view source on GitHub ↗
(req, res, next)
Source
from the content-addressed store, hash-verified
22
}
23
24
const
middleware =
function
blockRobots(req, res, next) {
25
if
(blockIndex(req.path)) res.set(
'x-robots-tag'
,
'noindex'
)
26
return
next()
27
}
28
29
middleware.blockIndex = blockIndex
30
Callers
1
createApp
Function · 0.85
Calls
2
blockIndex
Function · 0.85
next
Function · 0.50
Tested by
no test coverage detected