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

Function ApiRouteUpdateExtensions

apps/node/src/routes/api/extension.ts:178–193  ·  view source on GitHub ↗
(req: Request, res: Response)

Source from the content-addressed store, hash-verified

176}
177
178export async function ApiRouteUpdateExtensions(req: Request, res: Response) {
179 try {
180 const extensions = req.body.extensions as Extension[];
181 await comfyExtensionManager.updateExtensions(extensions);
182 await comfyuiService.restartComfyUI();
183 res.send({
184 success: true
185 });
186 } catch (err: any) {
187 logger.error(err.message + ":" + err.stack);
188 res.send({
189 success: false,
190 error: err.message
191 })
192 }
193}
194
195export async function ApiInstallPipPackages(req: Request, res: Response) {
196 try {

Callers

nothing calls this directly

Calls 2

updateExtensionsMethod · 0.80
restartComfyUIMethod · 0.80

Tested by

no test coverage detected