From 4a258e74ceee5bc2b22e875a36bac56256592b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Hurtado?= Date: Tue, 8 Oct 2019 15:39:22 +0200 Subject: [PATCH] Added Index fient to the Route model --- internal/server/model/route.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/server/model/route.go b/internal/server/model/route.go index 9a8fc9e..78cf6b8 100644 --- a/internal/server/model/route.go +++ b/internal/server/model/route.go @@ -22,4 +22,8 @@ type Route struct { // Command is the last argument to be passed to exec.Command when // executing the Entrypoint Command string `json:"command"` + + // Index is this route position in the server's routes list. + // It is an output field, its value is ignored as input. + Index int `json:"index"` }