The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
import { ProjectError, refreshSource } from "@/server/assist/projects";
/** Fetch a link source again. */
export async function POST(_req: Request, ctx: RouteContext<"/api/assist/projects/[projectId]/sources/[sourceId]/refresh">) {
const { projectId, sourceId } = await ctx.params;
try {
return Response.json(await refreshSource(projectId, sourceId));
} catch (e) {
return Response.json({ error: (e as Error).message }, { status: e instanceof ProjectError ? e.status : 500 });
}
}