Files
explore/lib/api/getUrlWithNetwork.ts
T
2022-10-17 20:58:41 +03:00

14 lines
345 B
TypeScript

// import * as Sentry from '@sentry/nextjs';
import type { NextApiRequest } from 'next';
import appConfig from 'configs/app/config';
export default function getUrlWithNetwork(_req: NextApiRequest, path: string) {
return [
appConfig.api.basePath,
path,
]
.filter((segment) => segment !== '' && segment !== '/')
.join('');
}