10 lines
271 B
TypeScript
10 lines
271 B
TypeScript
export * from "@t3tools/shared/advertisedEndpoint";
|
|
|
|
export const environmentEndpointUrl = (httpBaseUrl: string, pathname: string): string => {
|
|
const url = new URL(httpBaseUrl);
|
|
url.pathname = pathname;
|
|
url.search = "";
|
|
url.hash = "";
|
|
return url.toString();
|
|
};
|