arma-server-web-admin/public/js/app/collections/mods.js

17 lines
360 B
JavaScript
Raw Normal View History

2014-02-09 03:19:48 +00:00
define(function (require) {
2015-12-29 15:48:32 +00:00
2014-02-09 03:19:48 +00:00
"use strict";
2015-12-29 15:48:32 +00:00
2014-02-09 03:19:48 +00:00
var $ = require('jquery'),
_ = require('underscore'),
Backbone = require('backbone'),
Mod = require('app/models/mod');
2015-12-29 15:48:32 +00:00
2014-02-09 03:19:48 +00:00
return Backbone.Collection.extend({
2015-12-29 15:48:32 +00:00
comparator: 'name',
2014-02-09 03:19:48 +00:00
model: Mod,
url: '/api/mods/'
});
2015-12-29 15:48:32 +00:00
});