changed the fetch in js to be relative (no explicite url; just a path); removed version from docker compose
This commit is contained in:
@@ -295,7 +295,7 @@ async function submitForm(formData) {
|
|||||||
upload_status.innerText =
|
upload_status.innerText =
|
||||||
"Censoring Page " + data.page + "/" + data.pages;
|
"Censoring Page " + data.page + "/" + data.pages;
|
||||||
});
|
});
|
||||||
const response = await fetch(window.location + "submit", {
|
const response = await fetch("/submit/", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: formData,
|
body: formData,
|
||||||
});
|
});
|
||||||
@@ -338,7 +338,7 @@ function uploadPdf(eve) {
|
|||||||
}
|
}
|
||||||
async function uploadFile(formData) {
|
async function uploadFile(formData) {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(window.location + "uploadfile", {
|
const response = await fetch("/uploadfile/", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: formData,
|
body: formData,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
var url = window.location + "search/";
|
var url = "/search/";
|
||||||
var lid = null;
|
var lid = null;
|
||||||
var pid = null;
|
var pid = null;
|
||||||
var activeAutocompletion = null;
|
var activeAutocompletion = null;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
version: "3"
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
container_name: python-app
|
container_name: python-app
|
||||||
|
|||||||
Reference in New Issue
Block a user