match route with request pathname