Open neebz opened 4 years ago
https://github.com/mahnoorfatima/Assignment-WebScrapper/blob/ec53d357002a0798e84cdf7cbdd3d3e37b3b0ff4/controller.js#L12
response and request are variable for controller layer. passing them around is a bad design pattern. if you want to pass data to view layer, you should explicitly pass them as separate variables in to the method
response
request
view
https://github.com/mahnoorfatima/Assignment-WebScrapper/blob/ec53d357002a0798e84cdf7cbdd3d3e37b3b0ff4/controller.js#L12
response
andrequest
are variable for controller layer. passing them around is a bad design pattern. if you want to pass data toview
layer, you should explicitly pass them as separate variables in to the method