Why does instantiating a class that relies on an API pull work outside routes but fail inside a POST route in Node.js?
I am using cPanel to deploy my Node.js application and working with CommonJS modules. My app uses a class, PastWeather, which fetches data from an external API.