change routing of search action to RESTful