Add a configure(config) method to EndpointMapper
Fixes #1387