MCPcopy Create free account
hub / github.com/HisMax/RedInk / getImageUrl

Function getImageUrl

frontend/src/api/image.ts:14–17  ·  view source on GitHub ↗
(taskId: string, filename: string, thumbnail: boolean = true)

Source from the content-addressed store, hash-verified

12import type { AppError } from '../utils/errors'
13
14export function getImageUrl(taskId: string, filename: string, thumbnail: boolean = true): string {
15 const thumbParam = thumbnail ? '?thumbnail=true' : '?thumbnail=false'
16 return `${API_BASE_URL}/images/${taskId}/${filename}${thumbParam}`
17}
18
19export async function regenerateImage(
20 taskId: string,

Callers 1

hydrateFromHistoryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected