Permalink
Browse files

Merge branch 'v2.3'

  • Loading branch information...
2 parents 19fa43d + d8fd508 commit 6e7d647e8faa41d7f2b96fca24465a8eb05fb703 @willwhite willwhite committed Dec 5, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 servers/Route.bones.js
View
@@ -1,7 +1,7 @@
{
"name": "bones",
"description": "Framework for using backbone.js on the client and server.",
- "version": "2.3.0",
+ "version": "2.3.1",
"author": {
"name": "Development Seed",
View
@@ -82,7 +82,7 @@ server.prototype.initializeModels = function(app) {
this.models = app.models;
_.bindAll(this, 'loadModel', 'getModel', 'saveModel', 'delModel', 'loadCollection');
this.get('/api/:model/:id', [this.loadModel, this.getModel]);
- this.post('/api/:model', [this.loadModel, this.saveModel]);
+ this.post('/api/:model/:id?', [this.loadModel, this.saveModel]);
this.put('/api/:model/:id', [this.loadModel, this.saveModel]);
this.del('/api/:model/:id', [this.loadModel, this.delModel]);
this.get('/api/:collection', this.loadCollection.bind(this));

0 comments on commit 6e7d647

Please sign in to comment.