Open jema28 opened 5 years ago
It's good practice to avoid using words like 'add' or 'update' as this is clear from the http method e.g. POST. app.post('/course')
app.post('/course')
https://github.com/fack2/programming-courses/blob/28fbcce6d4c46939e09af961145543d292f3cab6/src/app.js#L51
Also endpoints should always be kebab case e.g painting-form, while functions are camelcase. Does this make sense?
It's good practice to avoid using words like 'add' or 'update' as this is clear from the http method e.g. POST.
app.post('/course')
https://github.com/fack2/programming-courses/blob/28fbcce6d4c46939e09af961145543d292f3cab6/src/app.js#L51