✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
At the server app.js, expand the server’s API (routing) to handle the registration request.
The request processing must extract the enclosed JSON object and functions to 1) validate the client inputs, 2) based on the validated data, register the “good thing” in the database and send the JSON response (or report an error).
Show only changed/added
Hint: The supplied helper functions extractJSON (promise based), jsonResponse, reportError may be useful.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!