patch generating routes with placeholder in host