monitord is able to create an admiralty Source on remote peer

This commit is contained in:
pb
2025-03-10 17:57:14 +01:00
parent 0a15357445
commit 3c692d2026
2 changed files with 6 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ func (c *AdmiraltyController) GetAllTargets() {
// @Success 200
// @router /targets/:execution [get]
func (c *AdmiraltyController) GetOneTarget() {
id := c.Ctx.Input.Param(":id")
id := c.Ctx.Input.Param(":execution")
serv, err := infrastructure.NewService()
if err != nil {
// change code to 500
@@ -125,6 +125,8 @@ func (c *AdmiraltyController) GetOneTarget() {
func (c *AdmiraltyController) CreateSource() {
execution := c.Ctx.Input.Param(":execution")
fmt.Println("execution :: ", execution)
fmt.Println("input :: ", c.Ctx.Input)
serv, err := infrastructure.NewKubernetesService()
if err != nil {
// change code to 500