Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "bex", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Express.js application bootstrapper. Simplicity, brevity, flexibility.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,7 +7,7 @@ function __buildModule (express, requireAll, handling) { | ||
var crudMethods = { | ||
create: 'post &', | ||
update: 'put &/:id', | ||
list: 'get &', | ||
view: 'get &/:id', | ||
remove: 'delete &/:id' | ||
create: 'post /&', | ||
update: 'put /&/:id', | ||
list: 'get /&', | ||
view: 'get /&/:id', | ||
remove: 'delete /&/:id' | ||
}; | ||
@@ -14,0 +14,0 @@ |
@@ -22,3 +22,3 @@ var should = require('should'); | ||
method: 'post', | ||
path: 'my-controller' | ||
path: '/my-controller' | ||
}); | ||
@@ -29,3 +29,3 @@ }); | ||
method: 'get', | ||
path: 'my-controller/:id' | ||
path: '/my-controller/:id' | ||
}); | ||
@@ -36,3 +36,3 @@ }); | ||
method: 'get', | ||
path: 'my-controller' | ||
path: '/my-controller' | ||
}); | ||
@@ -43,3 +43,3 @@ }); | ||
method: 'put', | ||
path: 'my-controller/:id' | ||
path: '/my-controller/:id' | ||
}); | ||
@@ -50,3 +50,3 @@ }); | ||
method: 'delete', | ||
path: 'my-controller/:id' | ||
path: '/my-controller/:id' | ||
}); | ||
@@ -141,3 +141,3 @@ }); | ||
router.should.equal(routerMock); | ||
routerMock.post.firstCall.args.should.containEql('my-controller-1'); | ||
routerMock.post.firstCall.args.should.containEql('/my-controller-1'); | ||
delete routerMock.post; | ||
@@ -151,3 +151,3 @@ }); | ||
router.should.equal(routerMock); | ||
routerMock.get.firstCall.args.should.containEql('my-controller-1'); | ||
routerMock.get.firstCall.args.should.containEql('/my-controller-1'); | ||
delete routerMock.get; | ||
@@ -161,3 +161,3 @@ }); | ||
router.should.equal(routerMock); | ||
routerMock.get.firstCall.args.should.containEql('my-controller-1/:id'); | ||
routerMock.get.firstCall.args.should.containEql('/my-controller-1/:id'); | ||
delete routerMock.get; | ||
@@ -171,3 +171,3 @@ }); | ||
router.should.equal(routerMock); | ||
routerMock.put.firstCall.args.should.containEql('my-controller-1/:id'); | ||
routerMock.put.firstCall.args.should.containEql('/my-controller-1/:id'); | ||
delete routerMock.put; | ||
@@ -181,3 +181,3 @@ }); | ||
router.should.equal(routerMock); | ||
routerMock['delete'].firstCall.args.should.containEql('my-controller-1/:id'); | ||
routerMock['delete'].firstCall.args.should.containEql('/my-controller-1/:id'); | ||
delete routerMock['delete']; | ||
@@ -184,0 +184,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27550