src/angular-spring-data-rest-provider.js
function extractUrlTemplates(resourceName) {
                    if (hasUrlTemplate(resourceName)) {
                        var indexOfSlash = resourceName.indexOf("/");
                        return [resourceName.substr(0, indexOfSlash), resourceName.substr(indexOfSlash, resourceName.length)];
                    }
                }
function extractUrlTemplates(resourceName) {
                    if (hasUrlTemplate(resourceName)) {
                        var indexOfSlash = resourceName.indexOf("/");
                        return [resourceName.substr(0, indexOfSlash), resourceName.substr(indexOfSlash, resourceName.length)];
                    }
                }
function extractUrlTemplates ( resourceName ) { if ( hasUrlTemplate ( resourceName ) ) { var indexOfSlash = resourceName . indexOf ( "/" ) ; return [ resourceName . substr ( 0 , indexOfSlash ) , resourceName . substr ( indexOfSlash , resourceName . length ) ] ; } }
Extracts the URL template and returns the resource name and the URL templates as an array.
@param resourceName the resource name to parse
@returns {[]} the first element is the raw resource name and the second is the extracted URL templates
Extracts the URL template and returns the resource name and the URL templates as an array .