Using Next.js API as Proxy Server

Why would you want it?

How?