MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / loadPlugins

Function loadPlugins

frontend/packages/common/src/hooks/pluginLoader.ts:441–453  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

439 }
440
441 const loadPlugins = () => {
442 return new Promise((resolve) => {
443 if (startInstallPlugin) {
444 return resolve(true)
445 }
446 startInstallPlugin = true
447 installPlugin().then(async (res) => {
448 // reset route after loading executed plugins
449 await loadExecutedPlugin()
450 return resolve(res)
451 })
452 })
453 }
454
455 const installPlugin = () => {
456 return new Promise((resolve, reject) => {

Callers 1

RenderRoutesFunction · 0.85

Calls 2

installPluginFunction · 0.85
loadExecutedPluginFunction · 0.85

Tested by

no test coverage detected