Changed the request url to properly call the server api