22 lines
591 B
JavaScript
22 lines
591 B
JavaScript
define(['app', 'jquery', 'underscore', 'backbone', 'model/lastRicette/lastRicetteModel'],
|
|
function (app, $, _, Backbone, LastRicette){
|
|
|
|
var lastRicette=Backbone.Collection.extend({
|
|
|
|
profileID: null,
|
|
initialize: function (options) {
|
|
this.profileID = options.profileID;
|
|
},
|
|
// Book is the model of the collection
|
|
model:LastRicette,
|
|
|
|
url: function() {
|
|
return myManifest.Settings.DefaultURL + "/api/ricette/lastinserted/" + this.profileID;
|
|
}
|
|
});
|
|
|
|
return lastRicette;
|
|
});
|
|
|
|
|