testSpeedInsights
Script
v3
Fork
1
2
3
4
5
6
7
export
function
testSpeedInsights
(
req
:
express
.
Request
,
res
)
{
if
(
req
.
path
===
"/robots.txt"
)
{
return
res
.
send
(
`User-agent: *
Allow: /`
)
;
}
res
.
send
(
"<h1>hi</hi>"
)
;
}