From f7f11108ddfeec6552970abdad8a94b35fd79497 Mon Sep 17 00:00:00 2001 From: "Justin (HoangVD2)" Date: Tue, 26 Nov 2024 15:36:10 +0700 Subject: [PATCH] chore: update endpoint routingapi --- components/ChainsV2.jsx | 2 +- routing/introduction.md | 4 ++-- routing/query-mutation-details.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/ChainsV2.jsx b/components/ChainsV2.jsx index be2d382b1..f0359eaeb 100644 --- a/components/ChainsV2.jsx +++ b/components/ChainsV2.jsx @@ -3,7 +3,7 @@ import LoadingIcon from "./LoadingIcon"; import PlayIcon from "./PlayIcon"; export default function ChainsV2() { - const ENDPOINT = "https://routingapi.xdefi.services/"; + const ENDPOINT = "https://routingapi.xdefiservices.com/"; const [response, setResponse] = useState([]); const [loading, setLoading] = useState(false); diff --git a/routing/introduction.md b/routing/introduction.md index a008bd25c..be4671c96 100644 --- a/routing/introduction.md +++ b/routing/introduction.md @@ -28,13 +28,13 @@ First, given a pair tokenA/tokenB, with assets belonging to the same chain or se ## Connecting to the API Before connecting to the API, one needs to go through the Ctrl (fka XDEFI) VPN to access it or to whitelist the IP address. -API endpoints share the same root URL: https://routingapi.xdefi.services/. +API endpoints share the same root URL: https://routingapi.xdefiservices.com/. To check the health status of the API just send a GET request to the above URL: ::: code-group ```ts [Request] -URL = "https://routingapi.xdefi.services"; +URL = "https://routingapi.xdefiservices.com"; response = await fetch(URL); diff --git a/routing/query-mutation-details.md b/routing/query-mutation-details.md index bfcd59e52..edfb1a39e 100644 --- a/routing/query-mutation-details.md +++ b/routing/query-mutation-details.md @@ -16,7 +16,7 @@ Both of these queries return information about assets available in one (chain, g While `chainsV2` has no parameters, `chainV2` takes one of the following chain names: ```js [JavaScript] -const ENDPOINT = "https://routingapi.xdefi.services/"; +const ENDPOINT = "https://routingapi.xdefiservices.com/"; const fetchChainsV2 = async () => { fetch(ENDPOINT + "chains")