Fixed a mistake where the query object was being assigned to the response, not the request, within the API route designator.