I tried to put my files into app/api/api
, but it wasn't working for me.
I found a solution by simply putting the api
folder into the controller
folder. I'm not 100% sure what the problem was, but my guess is that it has something to do with the auto-loaded paths.