So, I'm trying to develop an addon which will work as an API so Statamic can communicate with an external app.

Get routes are working fine, but when I send a REST post to a route, for instance, postIndex, it redirects me to the login page.

Am I missing something here?