Use an enum for endpoint types.