test scraping stats

This commit is contained in:
oiov
2024-11-11 10:28:18 +08:00
parent 26d20f1cec
commit fcb04be4af
3 changed files with 17 additions and 0 deletions
+5
View File
@@ -72,6 +72,11 @@ export const docsConfig: DocsConfig = {
href: "/docs/open-api/text",
icon: "page",
},
{
title: "Url to QR Code API",
href: "/docs/open-api/qr-code",
icon: "page",
},
],
},
{
+8
View File
@@ -0,0 +1,8 @@
---
title: Url to QR Code API
description: Generate QR Code from URL
---
## Usage
+4
View File
@@ -63,6 +63,10 @@ export default auth(async (req) => {
}
return NextResponse.redirect(target, 302);
}
} else if (req.url.includes("/api/scraping")) {
const geo = geolocation(req);
console.log("[URL From]", req.url, geo);
}
return NextResponse.next();