Pass endpoints to templates