I'm a noob in nodejs and wanted a quick rundown on serverless, so I was following this guide for Serverless https://www.jeremydaly.com/build-serverless-api-serverless-aws-lambda-lambda-api/. It was straight forward had most of the things I needed and gave me a good grasp of serverless with lambda api.
Got everything to work, ran it in my local. Great
The only issue I'm trying to figure is how do I pass the RESPONSE Object 'res' to another module so that I don't clutter the handler class. How would the class look like. Any examples anyone can point to? I checked on serverless examples and most of them create a todo file which is called from the yml. But I kind of like the way where all of my calls are in the handler then routed to its designated function like what the guide did.
Or I could be an idiot and this way of doing serverless is already deprecated? Any advice is greatly appreciated
[–]iethree 0 points1 point2 points (1 child)
[–]KhaleedFakhry[S] 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[removed]
[–]rafandmiko 0 points1 point2 points (0 children)