Add macro to simplify endpoint def