This commit is contained in:
mr
2024-11-14 10:36:09 +01:00
parent 426bdfb7e0
commit baf6d4c671
3 changed files with 8 additions and 2 deletions

View File

@@ -108,7 +108,9 @@ func (o *WorkflowController) GetAll() {
// @router /:id [get]
func (o *WorkflowController) Get() {
id := o.Ctx.Input.Param(":id")
o.Data["json"] = oclib.LoadOne(oclib.LibDataEnum(oclib.WORKFLOW), id)
caller := tools.NewHTTPCaller(paths) // create a new HTTP caller
caller.Disabled = oclib.IsQueryParamsEquals(o.Ctx.Input, "is_remote", true)
o.Data["json"] = oclib.LoadOne(oclib.LibDataEnum(oclib.WORKFLOW), id, caller)
o.ServeJSON()
}