Use container_name for API endpoint
This commit is contained in:
parent
eab0a3468c
commit
0217e1047c
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
|||
let download_path = "#";
|
||||
|
||||
async function startDownload() {
|
||||
const res = await fetch(`http://localhost:8080/download?url=${url}`);
|
||||
const res = await fetch(`http://yt-dls-backend:8080/download?url=${url}`);
|
||||
video_info = await res.json();
|
||||
|
||||
if (res.ok) {
|
||||
|
@ -23,12 +23,12 @@
|
|||
}
|
||||
|
||||
async function getStatus() {
|
||||
const res = await fetch(`http://localhost:8080/status?url=${url}`);
|
||||
const res = await fetch(`http://yt-dls-backend:8080/status?url=${url}`);
|
||||
status = await res.json();
|
||||
|
||||
if (res.ok) {
|
||||
if (status.DownloadPath) {
|
||||
download_path = `http://localhost:8080/${status.DownloadPath}`;
|
||||
download_path = `http://yt-dls-backend:8080/${status.DownloadPath}`;
|
||||
}
|
||||
return status;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue