I needed 2 different target URLs for a route in the tyk gateway, so I saw that I could simply create a virtual endpoint, in which a JS function makes 2 separate fetch requests to 2 separate APIs, and returns the results.
I set up a virtual endpoint POST route, which should call a virtual path executing JS code. In the settings, I made sure POST was one of the allowed methods.
The thing is, when I call a POST on that route, it says POST isn’t allowed. As i understand it, its because the default target url, httpbin, doesnt allow POST. So it seems like its hitting httpbin instead of my virtual endpoint, which is weird since it should hit the route I set up my endpoint in.
My question is, what do I put as my target URL if I want it to hit my virtual endpoint, instead of httpbin?