add route filter for api