1
0
Fork 0
mirror of https://github.com/Luzifer/mondash.git synced 2024-11-14 02:12:42 +00:00

Fix: Use BaseURL from config

This commit is contained in:
Knut Ahlers 2015-07-06 22:24:56 +02:00
parent 6d5375e55a
commit d975f946de

View file

@ -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)
} }