mirror of
https://github.com/skidoodle/albert.lol.git
synced 2026-04-28 11:17:41 +02:00
ip api test
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
export default async function ip(req: NextApiRequest, res: NextApiResponse){
|
||||
const ip = (req.headers['x-forwarded-for' || 'x-vercel-forwarded-for']);
|
||||
res.json({ ip: ip });
|
||||
}
|
||||
Reference in New Issue
Block a user