From 23f977f28ec2b40b80d9f2619aa536d547697f0e Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Mon, 24 Feb 2020 14:16:54 +0100 Subject: [PATCH] added json tag on routes --- pkg/command/server.go | 1 - pkg/config/config.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/command/server.go b/pkg/command/server.go index aa043970b2..e0e6013919 100644 --- a/pkg/command/server.go +++ b/pkg/command/server.go @@ -158,7 +158,6 @@ func Server(cfg *config.Config) *cli.Command { defer cancel() - // Flags have to be injected all the way down to the go-micro service { server, err := http.Server( http.Logger(logger), diff --git a/pkg/config/config.go b/pkg/config/config.go index 9b9e493995..14caa41a3a 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -50,7 +50,7 @@ type Config struct { HTTP HTTP Tracing Tracing Asset Asset - Routes []Route + Routes []Route `json:"routes"` } // New initializes a new configuration with or without defaults.