MCPcopy
hub / github.com/pingdotgg/uploadthing / createApiUrl

Function createApiUrl

packages/uploadthing/test/__test-helpers.ts:53–58  ·  view source on GitHub ↗
(slug: string, action?: typeof ActionType.Type)

Source from the content-addressed store, hash-verified

51 new RegExp(`^https://${appId}.${UFS_HOST}/f/.+$`);
52
53export const createApiUrl = (slug: string, action?: typeof ActionType.Type) => {
54 const url = new URL("http://localhost:3000");
55 url.searchParams.set("slug", slug);
56 if (action) url.searchParams.set("actionType", action);
57 return url;
58};
59
60export const doNotExecute = (_fn: (...args: any[]) => any) => {
61 // noop

Callers 2

adapters.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected