Cleans up the process of defining an endpoint. Here's the standard way:

adalProvider.init(
    {
        tenant: 'tenantId',
        clientId: 'clientId',
        endpoints: {
               'https://somesite.com/_api', 'https://someResourceIdUri.com'
        }
    },
    $httpProvider
);

Here's the new way with the (minor) modifications to the getResourceForEndpoint() function in adal.js:

adalProvider.init(
    {
        tenant: 'tenantId',
        clientId: 'clientId',
        endpoints: [
            {
                url: 'https://somesite.com/_api',
                resourceId: 'https://someResourceIdUri.com'
            }
        ]
    },
    $httpProvider
);