feat: replace api url

This commit is contained in:
kolaente 2024-02-09 14:38:54 +01:00
parent db2ec45378
commit 78df83ee69
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ func serveIndexFile(c echo.Context, assetFs http.FileSystem) (err error) {
}
scriptConfigString = strings.ReplaceAll(buf.String(), `<div id="app"></div>`, `<div id="app"></div>`+scriptConfig)
scriptConfigString = strings.ReplaceAll(scriptConfigString, "'http://localhost:3456/api/v1'", "'/api/v1'")
}
reader := strings.NewReader(scriptConfigString)