Skip to content

Commit 01170d7

Browse files
committed
port
1 parent 46f100b commit 01170d7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: public/client.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
const API_ENDPOINT_THUMBNAIL = 'http://localhost:3000/thumbnail';
1+
let port = 3000;
2+
const API_ENDPOINT_THUMBNAIL = `http://localhost:${port}/thumbnail`;
23

3-
const API_ENDPOINT_THUMBNAIL2 = 'http://localhost:3000/thumbnail2';
4+
const API_ENDPOINT_THUMBNAIL2 = `http://localhost:${port}/thumbnail2`;
45

5-
const API_ENDPOINT_VIDEO = 'http://localhost:3000/render';
6+
const API_ENDPOINT_VIDEO = `http://localhost:${port}/render`;
67

78

89

@@ -45,7 +46,8 @@ async function renderVideo(files, totalDuration) {
4546
}
4647
console.log('renderVideo() payload=',payload)
4748

48-
const res = await fetch( `${API_ENDPOINT_VIDEO}/${Math.ceil(totalDuration)}`, {
49+
//const res = await fetch( `${API_ENDPOINT_VIDEO}/${Math.ceil(totalDuration)}`, {
50+
const res = await fetch( `/render/${Math.ceil(totalDuration)}`, {
4951
method: 'POST',
5052
body: payload
5153
});

0 commit comments

Comments
 (0)