API Subfolder/route on custom domain [SOLVED]

I have a custom domain using netlify and everything is working perfectly.

However I need a /api/ route on my domain which will point to another server. What is the best way to do this?

If it’s not possible would it be possible via subdomain e.g. api.customdomain.com?

Many thanks.

Using the _redirects file in publish dir I managed to fix it:

/api/* serverip 200
1 Like