Issue NuCivic/nucivic-internal#44 Adds custom callback for endpoints