Skip to content

Commit c6ec42e

Browse files
authored
chore: Add diagnostics tool for confirming visitor IP (calcom#25083)
1 parent 1325e84 commit c6ec42e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

apps/web/app/api/ip/route.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { NextResponse } from "next/server";
2+
import getIP from "@calcom/lib/getIP";
3+
4+
export async function GET(req: Request) {
5+
const requestorIp = getIP(req);
6+
return NextResponse.json({ ip: requestorIp });
7+
}

0 commit comments

Comments
 (0)