logo

Crowdly

At the server app.js , expand the server’s API (routing) to handle the regis...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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

then call the specified

functions to 1) validate the client inputs,

then

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

code, including where the change is made.  

Hint: The supplied helper functions extractJSON (promise based), jsonResponse, reportError may be useful.  

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на www.moodle.aau.dk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!