add go routes to search function