Closed vitordullens closed 4 years ago
The update admin request should accept all the fields present in admin. In the front-end we decide with ones the user should be able to update.
We only update one admin at a time, so instead of passing a array of admins, it's more suitable to pass only an object.
add all fields
The update admin request should accept all the fields present in admin. In the front-end we decide with ones the user should be able to update.
send only an object
We only update one admin at a time, so instead of passing a array of admins, it's more suitable to pass only an object.