MCPcopy Create free account
hub / github.com/6174/comflowyspace / ApiGetObjectInfo

Function ApiGetObjectInfo

apps/node/src/routes/api/comfy-proxy.ts:41–59  ·  view source on GitHub ↗
(req: Request, res: Response)

Source from the content-addressed store, hash-verified

39});
40
41export async function ApiGetObjectInfo(req: Request, res: Response) {
42 try {
43 try {
44 const data = await updateObjectInfo();
45 return res.status(200).send(data);
46 } catch(err) {
47 if (cached_object_info) {
48 res.status(200).send(cached_object_info);
49 return
50 }
51 }
52 } catch(err: any) {
53 logger.error(err.message + ":" + err.stack);
54 res.status(500).send({
55 success: false,
56 error: err.message
57 });
58 }
59}

Callers

nothing calls this directly

Calls 1

updateObjectInfoFunction · 0.85

Tested by

no test coverage detected