Skip to content

Commit

Permalink
Merge pull request #16 from luxas/ui-pathprefix
Browse files Browse the repository at this point in the history
Fix the UI XHRs when the webserver is mounted at a non-root URL
  • Loading branch information
stefanprodan committed Mar 25, 2019
2 parents 7d5200a + c28c11d commit 1c3bf10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package version

var VERSION = "1.4.3"
var VERSION = "1.4.4"
var REVISION = "unknown"
4 changes: 2 additions & 2 deletions ui/vue.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ <h2 class="headline">The best way to start developing</h2>
getInfo: function() {
var xhr = new XMLHttpRequest()
var self = this
xhr.open('GET', "/api/info")
xhr.open('GET', "api/info")
xhr.onload = function () {
data = JSON.parse(xhr.responseText)
// reload page when the version changes
Expand All @@ -170,7 +170,7 @@ <h2 class="headline">The best way to start developing</h2>
},
postBackend: function() {
var self = this
fetch("/api/echo", {
fetch("api/echo", {
method: 'post',
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand Down

0 comments on commit 1c3bf10

Please sign in to comment.