(taskId: string, filename: string, thumbnail: boolean = true)
| 12 | import type { AppError } from '../utils/errors' |
| 13 | |
| 14 | export 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 | |
| 19 | export async function regenerateImage( |
| 20 | taskId: string, |
no outgoing calls
no test coverage detected