Skip to content

Commit 1c3bf10

Browse files
authored
Merge pull request #16 from luxas/ui-pathprefix
Fix the UI XHRs when the webserver is mounted at a non-root URL
2 parents 7d5200a + c28c11d commit 1c3bf10

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package version
22

3-
var VERSION = "1.4.3"
3+
var VERSION = "1.4.4"
44
var REVISION = "unknown"

ui/vue.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ <h2 class="headline">The best way to start developing</h2>
147147
getInfo: function() {
148148
var xhr = new XMLHttpRequest()
149149
var self = this
150-
xhr.open('GET', "/api/info")
150+
xhr.open('GET', "api/info")
151151
xhr.onload = function () {
152152
data = JSON.parse(xhr.responseText)
153153
// reload page when the version changes
@@ -170,7 +170,7 @@ <h2 class="headline">The best way to start developing</h2>
170170
},
171171
postBackend: function() {
172172
var self = this
173-
fetch("/api/echo", {
173+
fetch("api/echo", {
174174
method: 'post',
175175
headers: {
176176
"Content-type": "application/json; charset=UTF-8",

0 commit comments

Comments
 (0)