app/scripts/model/collectionbase.js
//// Only GET should be called for collections
Only GET should be called for collections
Only GET should be called for collections
sync(method, collection, options) {
        let url = options.url || this.url;
        let data = options && options.model ? options.model : collection.toJSON();
        let verb = 'GET';
        switch (method) {
            case 'read':
                verb = 'GET';
                break;
            case 'execute':
                verb = 'POST';
                break;
            case 'create':
                verb = 'POST';
                break;
            case 'update':
                verb = 'PATCH';
                break;
            case 'delete':
                verb = 'DELETE';
                break;
        }
        return httpajax.ajax(verb, url, data, options);
    }
sync ( method , collection , options ) { let url = options . url || this . url ; let data = options && options . model ? options . model : collection . toJSON ( ) ; let verb = 'GET' ; switch ( method ) { case 'read' : verb = 'GET' ; break ; case 'execute' : verb = 'POST' ; break ; case 'create' : verb = 'POST' ; break ; case 'update' : verb = 'PATCH' ; break ; case 'delete' : verb = 'DELETE' ; break ; } return httpajax . ajax ( verb , url , data , options ) ; }
Only GET should be called for collections
Only GET should be called for collections