Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

endpoint.ts

9 lines271 Bytes

1export * from "@t3tools/shared/advertisedEndpoint";
2​
3export const environmentEndpointUrl = (httpBaseUrl: string, pathname: string): string => {
4 const url = new URL(httpBaseUrl);
5 url.pathname = pathname;
6 url.search = "";
7 url.hash = "";
8 return url.toString();
9};