Help with NodeJS work

Hi, I need some help with node.JS- not for freecodecamp but for a school project.

Hi, I can’t see your code. Also, do you have any particular questions?

Hi
I’ve edited to show my current code.
I’m very lost in regard to:

  1. I’ve returned a ServerObj, great. How do I apply this to the use function?
  2. There seem to never be any declaration of request\response variables coming to any function, so I’m not understanding how should the middleware use it.
  3. the whole logic of middlewares is unclear to me: Whats the purpose of storing them in an array? Are they not supposed to be acted upon once summoned?

Thank you very much