fixed search endpoint with GET