/app/public/scripts/collections/event-collection.js
JavaScript | 18 lines | 11 code | 5 blank | 2 comment | 0 complexity | 9bdd3da738d9fb1d6f1366a54239bfc4 MD5 | raw file
- define([
- 'backbone',
- 'models/event-model'
- ], function(Backbone, Event) {
- 'use strict';
- var EventList = Backbone.Collection.extend({
- // Reference to this collection's model.
- model: Event,
- // Save all events under the `"events"` namespace.
- url: '/api/events'
- });
- return EventList;
- });