fixing request to /api not returning api result