Hi @yuriarthf, welcome to the Vercel Community!
For your application to be considered a serverless API, you must have the files under the /api folder.
I’d recommend reading through the Express 101: Everything about deploying your Express app on Vercel post.
Let me know if you need more help.