Skip to content

Commit 609b012

Browse files
committed
fix links in docs
1 parent 6b4253c commit 609b012

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

data/docs/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
NameStone's API is trusted by Web3 businesses and developers for seamless, gasless ENS subdomain management and issuance.
44
Our core offerings:
55

6-
- [NameStone API](./api-routes)
7-
- [TypeScript SDK](./sdk-quickstart)
8-
- [No-code Admin Panel](./admin_panel)
6+
- [NameStone API](./docs/api-routes)
7+
- [TypeScript SDK](./docs/sdk-quickstart)
8+
- [No-code Admin Panel](./admin)
99

1010
Get started with a free API key by filling out this [form](https://namestone.com/try-namestone) or using the [enable-domain](./enable-domain) endpoint.
1111

pages/api/[network]/set-name.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import sql from "../../../lib/db";
2-
import { checkApiKey, getNetwork, getClientIp } from "../../../utils/ServerUtils";
2+
import {
3+
checkApiKey,
4+
getNetwork,
5+
getClientIp,
6+
} from "../../../utils/ServerUtils";
37
import { encodeContenthash } from "../../../utils/ContentHashUtils.js";
48
import Cors from "micro-cors";
59
import { normalize } from "viem/ens";
@@ -33,14 +37,6 @@ async function handler(req, res) {
3337
headers.authorization || req.query.api_key,
3438
body.domain
3539
);
36-
console.log(
37-
"allowedApi",
38-
allowedApi,
39-
headers.authorization,
40-
req.query.api_key,
41-
body.domain,
42-
network
43-
);
4440
if (!allowedApi) {
4541
return res
4642
.status(401)
@@ -155,7 +151,7 @@ async function handler(req, res) {
155151
const clientIp = getClientIp(req);
156152
const jsonPayload = JSON.stringify({
157153
body: body,
158-
ip_address: clientIp
154+
ip_address: clientIp,
159155
});
160156
await sql`
161157
insert into user_engagement (address, name, details)

0 commit comments

Comments
 (0)