fack2 / programming-courses

0 stars 1 forks source link

Avoid using verbs in endpoints #14

Open jema28 opened 5 years ago

jema28 commented 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')

https://github.com/fack2/programming-courses/blob/28fbcce6d4c46939e09af961145543d292f3cab6/src/app.js#L51

jema28 commented 5 years ago

Also endpoints should always be kebab case e.g painting-form, while functions are camelcase. Does this make sense?