Exposing API routes

I have the same problem. Did You find a solution?