test scraping stats
This commit is contained in:
@@ -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",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
---
|
||||
title: Url to QR Code API
|
||||
description: Generate QR Code from URL
|
||||
---
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user