aboutsummaryrefslogtreecommitdiff
path: root/src/static
diff options
context:
space:
mode:
authorJoris2024-06-10 08:55:25 +0200
committerJoris2024-06-10 08:55:25 +0200
commit9e48c2bd8b4a3fdd73b2fc51afec14180b4b0dcf (patch)
tree6ffe8ca2369bca3c77e09e05abc2046923ca4b91 /src/static
parentc1c24146266a1e35748421c1afba10b24794af26 (diff)
Use easier path to facilitate matching on routesmain
Diffstat (limited to 'src/static')
-rw-r--r--src/static/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/main.js b/src/static/main.js
index 40e62d6..b3ed57b 100644
--- a/src/static/main.js
+++ b/src/static/main.js
@@ -28,10 +28,10 @@ window.onload = function() {
// Wait a bit to prevent showing the loader too briefly
setTimeout(function() {
const xhr = new XMLHttpRequest()
- xhr.open('POST', '/', true)
+ xhr.open('POST', '/upload', true)
xhr.onload = function () {
if (xhr.status === 200) {
- window.location = `/${xhr.responseText}`
+ window.location = `/share/${xhr.responseText}`
} else {
showError(`Error uploading: ${xhr.status}`)
}