Fix code sample in multiple-endpoints