✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
At the server app.js, expand the server’s API to handle requests to receive new orders.
It should support the specified HTTP method and resource name with the coffee recipe supplied in as JSON.
The request processing must call the specified functions to 1) validate the client inputs, and then 2) based on the validated data, process the order (insert in database and generate the result object). Show only changed/added code, including where the change is made.
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!