From 1e8ea437254a818452111cd52549032a6ea61f71 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 29 Jul 2023 21:59:17 +0800 Subject: Make API server endpoint configurable in config file & CLI arg --- config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.go') diff --git a/config.go b/config.go index 078b949..65794af 100644 --- a/config.go +++ b/config.go @@ -3,5 +3,6 @@ package main import "github.com/keuin/slbr/recording" type GlobalConfig struct { - Tasks []recording.TaskConfig `mapstructure:"tasks"` + Tasks []recording.TaskConfig `mapstructure:"tasks"` + ApiServer string `mapstructure:"api_server"` } -- cgit v1.2.3