Added a basic filter_routes() function to apply the route acceptance policy