API routes stoppped working
I had some API routes I'd setup that were working on Friday. Then I started working on some web components today and the API routes that were previously working are now responding as if they are web routes:
https://flow-extensions--development.gadget.app/api/send-abandoned-email
I stashed the changes I was workign on in a branch and reverted back to the code that was working on Friday but the url is still responding this way. I also did an app restart.
This is a GET route just for convenience when quickly inspecting the url even though the actual work is done in a POST:
https://flow-extensions.gadget.app/edit/development/files/api/routes/GET-send-abandoned-email.js

3 Replies
Hello,
I've not had an issue accessing the route.
I think that your issue is that you've encluded
api
in the route but it should only be:
https://flow-extensions--development.gadget.app/send-abandoned-email
You had https://flow-extensions--development.gadget.app/api/send-abandoned-emailslaps self in the face
dah that alwasy throws me off
Its no problem!