MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / resolveProjectFile

Function resolveProjectFile

packages/studio-server/src/routes/files.ts:139–145  ·  view source on GitHub ↗
(
  c: RouteContext,
  adapter: StudioApiAdapter,
  opts?: { mustExist?: boolean },
)

Source from the content-addressed store, hash-verified

137}
138
139function resolveProjectFile(
140 c: RouteContext,
141 adapter: StudioApiAdapter,
142 opts?: { mustExist?: boolean },
143) {
144 return resolveProjectPath(c, adapter, (id) => `/projects/${id}/files/`, opts);
145}
146
147function resolveFileMutationContext(c: RouteContext, adapter: StudioApiAdapter, operation: string) {
148 return resolveProjectPath(c, adapter, (id) => `/projects/${id}/file-mutations/${operation}/`);

Callers 1

registerFileRoutesFunction · 0.85

Calls 1

resolveProjectPathFunction · 0.85

Tested by

no test coverage detected