PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/app/resources/posts/collection.js

https://github.com/matthieuHanne/blog-front
JavaScript | 10 lines | 8 code | 1 blank | 1 comment | 0 complexity | a4b6a2647d7b08cf61e74fd43981a4db MD5 | raw file
  1. /*global define */
  2. define(['app', 'backbone', './model'],
  3. function(App, Backbone, Model){
  4. 'use strict';
  5. return Backbone.Collection.extend({
  6. 'model': Model,
  7. 'urlRoot': App.config.apiUrl + '/posts',
  8. });
  9. });