Skip to content

Commit b25605b

Browse files
authored
feat(ensapi): set active servers for openapi (#1529)
1 parent 36dd984 commit b25605b

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"ensapi": patch
3+
---
4+
5+
Add production and testnet servers to OpenAPI spec
6+
7+
The OpenAPI specification now includes the following servers:
8+
- https://api.alpha.ensnode.io (ENSNode Alpha - Mainnet)
9+
- https://api.alpha-sepolia.ensnode.io (ENSNode Alpha - Sepolia Testnet)
10+
- localhost (Local Development)

apps/ensapi/src/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,14 @@ app.get(
7979
description:
8080
"APIs for ENS resolution, navigating the ENS nameforest, and metadata about an ENSNode",
8181
},
82-
servers: [{ url: `http://localhost:${config.port}`, description: "Local Development" }],
82+
servers: [
83+
{ url: "https://api.alpha.ensnode.io", description: "ENSNode Alpha (Mainnet)" },
84+
{
85+
url: "https://api.alpha-sepolia.ensnode.io",
86+
description: "ENSNode Alpha (Sepolia Testnet)",
87+
},
88+
{ url: `http://localhost:${config.port}`, description: "Local Development" },
89+
],
8390
tags: [
8491
{
8592
name: "Resolution",

0 commit comments

Comments
 (0)