feats: add url stats charts

This commit is contained in:
oiov
2024-08-02 17:00:42 +08:00
parent fd3cb20f44
commit 4e87d5e2a7
9 changed files with 1140 additions and 14 deletions
+2
View File
@@ -6,6 +6,7 @@ export async function GET(req: NextRequest) {
try {
const url = new URL(req.url);
const slug = url.searchParams.get("slug");
const referer = url.searchParams.get("referer");
const ip = url.searchParams.get("ip");
const city = url.searchParams.get("city");
const region = url.searchParams.get("region");
@@ -35,6 +36,7 @@ export async function GET(req: NextRequest) {
country,
latitude,
longitude,
referer,
});
return Response.json(res.target);
}