The /api directory holds the API Side of your app. Pretty much anything in the api side will eventually become a serverless function and run on the server.

Redwood Docs