Created
November 14, 2023 08:53
-
-
Save edoves/a5cbc324f2732934d80e0bf3e85835df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Update or edit | |
app.post('api/course/:id', (req,res) => { | |
// check the course if it exist | |
// if not existing, return a 404 status. | |
//validate | |
// if invalid, return 404 -bad request | |
//update course | |
// return the updated course | |
}) | |
// delete | |
app.delete('api/course/:id', (req,res) => { | |
//check the course if it exist | |
// if not existing, return a 404 status. | |
//delete | |
//return the same course | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment