Changed the url from /api/api/competitions to /api/competitions.