fix(frontend): key as config flag
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"io/fs"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"text/template"
|
||||
|
||||
svgtemplater "tomatentum.net/svg-templater"
|
||||
@@ -97,7 +96,7 @@ func PrepareFrontend(key string) {
|
||||
|
||||
// Execute with environment variables
|
||||
data := map[string]string{
|
||||
"APIKey": os.Getenv("API_KEY"),
|
||||
"APIKey": key,
|
||||
"APIUrl": "",
|
||||
}
|
||||
if err := tmpl.Execute(w, data); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user