Plugin POST route 404...But logic is executed...HUH?

Its fine if I replace the code. 200.

My actual code includes oauth for the google sheets api - reads a json file then calls the api, processes the data, etc.

There is a lot of callbacks - do you think trying to flatten things out to with async would help?

Update

Flattening out callbackville worked somewhat. As long as the token is valid it returns 200. My only issue is the authorization.

Right now if the token is missing or not valid, I am outputting a url to the terminal. I then click that url, go through the google oauth, and get redirected back to the admin homepage. I then copy and paste the code url param from the browser back into the terminal - this triggers the token to be saved to a json file. This can’t be the best way to do this…are we able to make our own route handlers?

Could be a cool plugin, it writes the ID back to the google sheet so it can be used for updates later…ecommerce