Serialize every response
API routes do not return raw Prisma models. Each result passes through a serializer before it is added to a standard API response.Use public types
The final serialized shapes live insrc/types/. Serializers declare those
types as their output, and API services and frontend components consume the same
types.