From d3a3d4dbf5836a59486757523a4ec6e371f18ee5 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 11 Apr 2020 16:32:46 -0700 Subject: [PATCH] Fix configuration to read JSON correctly --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index dbe92f4..e3e543f 100644 --- a/config/config.go +++ b/config/config.go @@ -32,11 +32,11 @@ type Configuration struct { // An identifier for the token which must be included in any requests to the panel // so that the token can be looked up correctly. - AuthenticationTokenId string `yaml:"token_id"` + AuthenticationTokenId string `json:"token_id" yaml:"token_id"` // The token used when performing operations. Requests to this instance must // validate against it. - AuthenticationToken string `yaml:"token"` + AuthenticationToken string `json:"token" yaml:"token"` Api ApiConfiguration System SystemConfiguration