move json endpoints to /search