Tuesday, 5 November 2019

Question about some code

https://github.com/hakarapet/nodejs-design-patterns/blob/master/design_patterns/factory/libs/Response.jsI am wondering if returning the meta data makes any sense, because doesn't Express.js handle that already, and what is the meta data supposed to be? I am thinking the meta data is just the form data passed to the Node.js application through a typical GET/POST/PUT/DELETE request. I am trying to find a good use case for a factory in a Node.js application using Express.js and I can't think of any since we don't need to make one since it's already handled by the libraries.

Submitted November 05, 2019 at 08:28PM by jesusscript

No comments:

Post a Comment