HackYourFuture-CPH / simply-name.it

Final Project for Class17
MIT License
3 stars 1 forks source link

Fix: addMember function to detect role automatically #248

Closed shpomp closed 3 years ago

shpomp commented 3 years ago

Description

addMember function in users.controller is changed to automatically detect the member role according to the parameters that are passed to the POST endpoint.

Fixes #247

How to test?

npm run dev and test in swagger docs. http://localhost:5000/api/documentation/#/Members/post_users__userId__boards__boardId__members__memberId_

Checklist