Frontend wasn't receiving the backend API because of requirejs.