mirror of
https://github.com/Luzifer/mondash.git
synced 2024-12-23 04:21:18 +00:00
Fix: Use BaseURL from config
This commit is contained in:
parent
6d5375e55a
commit
d975f946de
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
|
||||||
"sort"
|
"sort"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -48,7 +47,7 @@ func handleDisplayDashboard(res http.ResponseWriter, req *http.Request) {
|
||||||
"dashid": params["dashid"],
|
"dashid": params["dashid"],
|
||||||
"metrics": metrics,
|
"metrics": metrics,
|
||||||
"apikey": dash.APIKey,
|
"apikey": dash.APIKey,
|
||||||
"baseurl": os.Getenv("BASE_URL"),
|
"baseurl": cfg.BaseURL,
|
||||||
}, res)
|
}, res)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue