I have a node server running on port 3000. I'll be using it to handle all my APIs, but I don't want the URLs to be in the format
example.com:3000/api/xyz
I want it to be in the format:
example.com/api/..
How do I route all /api/ calls to port 3000?
example.com will be serving HTML pages, which have nothing to do with node. Node will only be used for APIs for now. I found Varnish, but it looks like overkill.