Skip to content
Snippets Groups Projects
Commit ccbeed9e authored by henry anand's avatar henry anand
Browse files

fix : assignment submission url

parent 5378efad
Branches
No related merge requests found
...@@ -6,7 +6,7 @@ function renderAssignments(){ ...@@ -6,7 +6,7 @@ function renderAssignments(){
const element = document.getElementById("content"); const element = document.getElementById("content");
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.open("GET", `http://localhost:5000/api/assignment/${sid}`) xhr.open("GET", `http://localhost:5001/api/assignment/${sid}`)
xhr.onload = () => { xhr.onload = () => {
const res = JSON.parse(xhr.response); const res = JSON.parse(xhr.response);
......
const render = () => { const render = () => {
const xhr = new XMLHttpRequest(); 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 = () => { xhr.onload = () => {
const res = JSON.parse(xhr.response); const res = JSON.parse(xhr.response);
...@@ -21,7 +21,7 @@ const description = document.getElementById("description"); ...@@ -21,7 +21,7 @@ const description = document.getElementById("description");
const submitForm = () => { const submitForm = () => {
const xhr = new XMLHttpRequest(); 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 = () => { xhr.onload = () => {
const res = JSON.parse(xhr.response); const res = JSON.parse(xhr.response);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment