API Routes

In order to keep vite-plugin-ssr lean and focused, vite-plugin-ssr does not support API routes.

Instead, we can use our server framework to implement API endpoints, for example by creating Express.js routes. Or we can use API tools such as GraphQL.

The vite-plugin-ssr creator is working on an RPC implementation called Telefunc that has first-class support for SSR.