Fix to prevent routes to be catched if declared outside of api scope