Features
Explore
About
Docs
Pricing
Log in
Sign up
Log in
Sign Up
alp
/
ping
Fork
0 Likes
Code
Comments
Pull Requests
Forks
Reference
1
Dependency
1
log
Script
v10
Fork
1
2
3
4
5
6
7
8
9
10
import
{
ping
}
from
"https://esm.town/v/alp/ping"
;
export
const
log
=
async
(
req
,
res
)
=>
{
await
ping
(
)
;
res
.
json
(
{
forwardedFor
:
req
.
headers
[
"x-forwarded-for"
]
,
remoteAddress
:
req
.
connection
.
remoteAddress
,
ip
:
req
.
ip
,
}
)
;
}
;
0
Prev
1
Next
?