Commit 6d8c3f21 authored by Igor Stuev's avatar Igor Stuev Committed by GitHub

Merge pull request #65 from blockscout/fix-dynamic-api-url

fix dynamic api url
parents 4b35149a 88ecda24
import type { NextApiRequest, NextApiResponse } from 'next' import type { NextApiRequest, NextApiResponse } from 'next'
import fetch from 'api/utils/fetch'; import fetch from 'pages/api/utils/fetch';
export default async function handler(_req: NextApiRequest, res: NextApiResponse) { export default async function handler(_req: NextApiRequest, res: NextApiResponse) {
const { id } = _req.query; const { id } = _req.query;
......
import type { NextApiRequest, NextApiResponse } from 'next' import type { NextApiRequest, NextApiResponse } from 'next'
import fetch from 'api/utils/fetch'; import fetch from 'pages/api/utils/fetch';
export default async function handler(_req: NextApiRequest, res: NextApiResponse) { export default async function handler(_req: NextApiRequest, res: NextApiResponse) {
const url = '/account/v1/user/tags/address'; const url = '/account/v1/user/tags/address';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment