mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-24 06:09:07 +00:00
21 lines
398 B
JavaScript
21 lines
398 B
JavaScript
|
define([
|
||
|
'underscore',
|
||
|
'backbone',
|
||
|
'common'
|
||
|
], function(_, Backbone, Common) {
|
||
|
'use strict';
|
||
|
|
||
|
var collection = Backbone.Collection.extend({
|
||
|
url: function() {
|
||
|
return Common.getUrl({name: 'admin-address-book-groups'});
|
||
|
},
|
||
|
|
||
|
parse: function(data) {
|
||
|
return data.data; // return the array
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
return collection;
|
||
|
});
|