diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index c6432cc..5a2e563 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -15,7 +15,7 @@ spec: spec: containers: - name: m1730-generator - image: git.baumann.gr/adebaumann/m1730-generator:0.2 + image: git.baumann.gr/adebaumann/m1730-generator:0.3 imagePullPolicy: Always ports: - containerPort: 5000 diff --git a/web/templates/index.html b/web/templates/index.html index 99ddbbf..7c27430 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -177,7 +177,8 @@ const status = document.getElementById('status'); status.textContent = 'Generating…'; try { - const resp = await fetch('generate', { + const base = window.location.href.split('?')[0].replace(/\/?$/, '/'); + const resp = await fetch(base + 'generate', { method: 'POST', body: new FormData(document.getElementById('form')), });