MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / sanitizeEndpoint

Function sanitizeEndpoint

webapp/_webapp/src/libs/apiclient.ts:275–275  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

273const LOCAL_STORAGE_KEY_V2 = "pd.devtool.endpoint.v2";
274
275const sanitizeEndpoint = (url: string) => url.trim().replace(/\/+$/, "");
276
277// Create apiclient instance with endpoint from storage or default
278export const getEndpointFromStorage = () => {

Callers 2

updateBaseURLMethod · 0.85
getEndpointFromStorageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected