Skip to content

Instantly share code, notes, and snippets.

@atakangah
Last active July 12, 2020 11:00
Show Gist options
  • Save atakangah/6380f984f969642e42c1c47d58fccb4b to your computer and use it in GitHub Desktop.
Save atakangah/6380f984f969642e42c1c47d58fccb4b to your computer and use it in GitHub Desktop.
An express routing js file to take a student's Id and a course Id from a request body to the api server and remove the associated course with the specified course Id from the student's courses list
router.post('/complete-student-course', async (req, res) => {
let {studentId, courseId} = req.body;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment