Here\'s the function that gets data from the api and passes it to the results template:
@auth.route(\'/search\', methods=[\'GET\', \'POST\']) def search():