Sunday, 14 June 2020

How to call an express API using functions directly?

Let's say I have a route :app.get ('/a/test', funA, funB, funC, sendResponse);Now I know that we can run the app and call localhost:3000/a/test but in my case my app have tons of dependency and throwing some errors so I am unable to run app. I just want to test this API and is there any way I can provoke this route without running the app on any port?Can I directly call funA passing some params?

Submitted June 15, 2020 at 07:02AM by GhostFoxGod

No comments:

Post a Comment