diff --git a/ec2.py b/ec2.py index fad1632..59046a4 100644 --- a/ec2.py +++ b/ec2.py @@ -229,7 +229,7 @@ def create_js_scripts(ip): if (file) { const formData = new FormData(); formData.append('file', file); - fetch('http://""" + ip + """/invoice', { + fetch('http://""" + ip + """:8080/invoice', { method: 'POST', body: formData, }) diff --git a/static/scripts.js b/static/scripts.js index bfb1905..ae55eeb 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -8,7 +8,7 @@ if (file) { const formData = new FormData(); formData.append('file', file); - fetch('http://127.0.0.1/invoice', { + fetch('http://127.0.0.1:8080/invoice', { method: 'POST', body: formData, })