APIv2: some finalization of APIv2. Add new routes, re-rigg

query/param/body requirements. This overhauls the API pretty
substantially, so we'll indeed be moving this to apiv2, using v1 for the
old API, and limiting it's use substantially
This commit is contained in:
Tyler Renelle
2013-12-15 14:49:22 -07:00
parent d0b07ba4db
commit 91e1287d06
7 changed files with 102 additions and 174 deletions
+1 -4
View File
@@ -266,10 +266,7 @@ var UserSchema = new Schema({
});
UserSchema.methods.deleteTask = function(tid) {
//user[t.type+'s'].id(t.id).remove();
var task = this.tasks[tid];
var i = this[task.type+'s'].indexOf(task);
if (~i) this[task.type+'s'].splice(i,1);
this.ops.deleteTask(tid); // TODO remove this whole method, since it just proxies, and change all references to this method
}
UserSchema.methods.toJSON = function() {