HackYourFuture-CPH / fp-class19

MIT License
3 stars 1 forks source link

Backend : Update endpoint /api/favorites/add with error handlers #199

Closed FlorentinaPetica closed 2 years ago

FlorentinaPetica commented 2 years ago

Description

I updated the end point /api/favorites/add with error handlers

Fixes # 193

Please provide a short summary how your changes can be tested?

npm run dev check swagger in api/documentation make a post request with a id value of string or smaller that 1 and get a 400 error. If non existent id you get a 500 error.

Checklist