I am working on a Pages function, but it's not working. I have created a new "functions" folder at the root of my project and added a "submit.js" file inside the "api" folder(functions/api/submit) of the "functions" directory. I uploaded the code to Pages using the wrangle CLI, but my API is not functioning as expected.
I have reviewed all the documentation and followed all the steps, but I still can't figure out what I am doing wrong. Could you please guide me further? I would greatly appreciate any assistance you can provide.
Thank you in advance.
Looking forward to your response.