✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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.
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!