diff --git a/public/js/assignments.js b/public/js/assignments.js
index 35ffe7887e1f67af59b1074754954e1c8830a8e2..66e80af1fd731371781133773913d38dd04a5aae 100644
--- a/public/js/assignments.js
+++ b/public/js/assignments.js
@@ -6,7 +6,7 @@ function renderAssignments(){
     const element = document.getElementById("content");
 
     const xhr = new XMLHttpRequest();
-    xhr.open("GET", `http://localhost:5000/api/assignment/${sid}`)
+    xhr.open("GET", `http://localhost:5001/api/assignment/${sid}`)
 
     xhr.onload = () => {
         const res = JSON.parse(xhr.response);
diff --git a/public/js/submit.js b/public/js/submit.js
index 620182d8b1b38eb6259a60249b2bf943728a7143..ab0b85cb9d6e03bca051c9aeaad4ebad243e5d95 100644
--- a/public/js/submit.js
+++ b/public/js/submit.js
@@ -1,6 +1,6 @@
 const render = () => {
     const xhr = new XMLHttpRequest();
-    xhr.open("GET", `http://localhost:5000/api/assignment/${sid}/${aid}`)
+    xhr.open("GET", `http://localhost:5001/api/assignment/${sid}/${aid}`)
 
     xhr.onload = () => {
         const res = JSON.parse(xhr.response);
@@ -21,7 +21,7 @@ const description = document.getElementById("description");
 
 const submitForm = () => {
     const xhr = new XMLHttpRequest();
-    xhr.open("POST", `http://localhost:5000/api/files/scholarship/${sid}/assignment/${aid}`)
+    xhr.open("POST", `http://localhost:5001/api/files/scholarship/${sid}/assignment/${aid}`)
 
     xhr.onload = () => {
         const res = JSON.parse(xhr.response);