How do You Structure Your Code When Moving Your API from Express to Serverless Functions?

How do You Structure Your Code When Moving Your API from Express to Serverless Functions?