Add filter to routes