Add const qualifier to register_endpoint param