From 063d57d9e738db346db583f393cdeef28c6e138f Mon Sep 17 00:00:00 2001 From: pb Date: Mon, 12 May 2025 12:21:12 +0200 Subject: [PATCH] updated comments and logs --- controllers/admiralty.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admiralty.go b/controllers/admiralty.go index 65b984a..ade21c7 100644 --- a/controllers/admiralty.go +++ b/controllers/admiralty.go @@ -170,7 +170,7 @@ func (c *AdmiraltyController) CreateAdmiraltySource() { // @Param execution path string true "execution id of the workflow" // @Param peer path string true "peerId of the peer the target points to" // @Success 201 -// @router /target/:execution [post] +// @router /target/:execution/:peer [post] func (c *AdmiraltyController) CreateAdmiraltyTarget(){ var data map[string]interface{} @@ -179,7 +179,7 @@ func (c *AdmiraltyController) CreateAdmiraltyTarget(){ if execution == "" || peerId == "" { c.Ctx.Output.SetStatus(400) - c.Data["json"] = map[string]string{"error" : "parameters can be empty"} + c.Data["json"] = map[string]string{"error" : "parameters can be empty " + "execution: " + execution + " peer: " + peerId} c.ServeJSON() return }