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

Method Render

controller/dynamic-module/iml.go:46–56  ·  view source on GitHub ↗
(ctx *gin.Context, module string)

Source from the content-addressed store, hash-verified

44}
45
46func (i *imlDynamicModuleController) Render(ctx *gin.Context, module string) (*dynamic_module_dto.PluginBasic, map[string]interface{}, error) {
47 render, err := i.module.Render(ctx, module)
48 if err != nil {
49 return nil, nil, err
50 }
51 pluginInfo, err := i.module.PluginInfo(ctx, module)
52 if err != nil {
53 return nil, nil, err
54 }
55 return pluginInfo.PluginBasic, render, nil
56}
57
58func (i *imlDynamicModuleController) Create(ctx *gin.Context, module string, input *dynamic_module_dto.CreateDynamicModule) (*dynamic_module_dto.DynamicModule, error) {
59 return i.module.Create(ctx, module, input)

Callers

nothing calls this directly

Calls 2

RenderMethod · 0.65
PluginInfoMethod · 0.65

Tested by

no test coverage detected