mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-11 14:02:37 +08:00
15 lines
351 B
JavaScript
15 lines
351 B
JavaScript
const { mockApi } = require("./setup");
|
|
const { Ez } = require("./ezgraph");
|
|
|
|
/**
|
|
*
|
|
* @param { Parameters<mockApi> } config
|
|
* @returns
|
|
*/
|
|
export async function start(config = undefined) {
|
|
mockApi(config);
|
|
const { app } = require("../../web/scripts/app");
|
|
await app.setup();
|
|
return Ez.graph(app, global["LiteGraph"], global["LGraphCanvas"]);
|
|
}
|