16 lines
499 B
JavaScript
16 lines
499 B
JavaScript
define(['app', 'jquery', 'underscore', 'backbone', 'model/authors/authorModel'],
|
|
function (app, $, _, Backbone, Author) {
|
|
|
|
var Authors = Backbone.Collection.extend({
|
|
// Book is the model of the collection
|
|
model: Author,
|
|
url: function () {
|
|
return myManifest.Settings.DefaultURL + "/api/ricette/authors";
|
|
}
|
|
});
|
|
|
|
return Authors;
|
|
});
|
|
|
|
|