We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b17727a commit b9b7211Copy full SHA for b9b7211
pages/api/exchange/[[...params]].tsx
@@ -24,9 +24,8 @@ const urlCreator = (
24
basePath: string,
25
) => {
26
if (!path) return basePath
27
- // query starts with /swaps, for example: swap/v4.1/1/swap?...'
28
- const replacedRouteName = path.replace(`/api/${ROUTE_NAME}`, '/swap')
29
- const url = new URL(`${basePath}${replacedRouteName}`)
+ const removedRouteName = path.replace(`/api/${ROUTE_NAME}`, '')
+ const url = new URL(`${basePath}${removedRouteName}`)
30
31
// Add connectorTokens query param to the url if the network is mainnet
32
if (Number(queryParams.networkId) === NetworkIds.MAINNET) {
0 commit comments