def add_plugin_to_endpoints(endpoints, plugin):
    """
    Add the endpoint key to each endpoint dictionary in the list
    :param endpoints: List of endpoint dictionaries
    :param plugin: String of the plugin name
    """
    for endpoint in endpoints:
        endpoint.update({
            'plugin': plugin,
        })
    
    return endpoints