window.Lunchiatto.module('Entities', function(Entities, App, Backbone, Marionette, $, _) {
  Entities.User = Backbone.Model.extend({
    urlRoot() {
      return '/api/users';
    },

    loggedIn() {
      return !isNaN(this.get('id'));
    }
  });

  return Entities.Users = Backbone.Collection.extend({
    model: Entities.User,

    url() {
      return '/api/users';
    }
  });
});

window.Lunchiatto.module('Entities', function(Entities, App, Backbone, Marionette, $, _) {
  Entities.User = Backbone.Model.extend({
    urlRoot() {
      return '/api/users';
    },

    loggedIn() {
      return !isNaN(this.get('id'));
    }
  });

  Entities.Me = Entities.User.extend({
    urlRoot() {
      return '/api/users/me'
    }
  });

  return Entities.Users = Backbone.Collection.extend({
    model: Entities.User,

    url() {
      return '/api/users';
    }
  });
});

Add App.Entities.Me