Moved UI resources to Wwwroot in embedded golang webserver RIVM-23

This commit is contained in:
Mihail Slobodyanuk 2022-12-13 17:07:34 +02:00
parent b52e1bb787
commit dca4fdd689
6 changed files with 15 additions and 9 deletions

View file

@ -294,10 +294,10 @@ func run(args yggArgs, ctx context.Context) {
return
}
//override httpaddress and wwwroot parameters in cfg
if len(args.httpaddress) > 0 {
if len(cfg.HttpAddress) == 0 {
cfg.HttpAddress = args.httpaddress
}
if len(args.wwwroot) > 0 {
if len(cfg.WwwRoot) == 0 {
cfg.WwwRoot = args.wwwroot
}