hapi-crud-promise
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -46,3 +46,3 @@ 'use strict'; | ||
server.route({ | ||
method: 'UPDATE', | ||
method: 'PUT', | ||
path: options.path, | ||
@@ -49,0 +49,0 @@ config: { |
{ | ||
"name": "hapi-crud-promise", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Easily create CRUD routes on a hapi server by providing a path and promises for each of the actions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,3 +27,3 @@ hapi-crud-promise | ||
GET /api/things/{thingId} | ||
UPDATE /api/things/{thingId} | ||
PUT /api/things/{thingId} | ||
DELETE /api/things/{thingId} | ||
@@ -30,0 +30,0 @@ ``` |
@@ -105,3 +105,3 @@ 'use strict'; | ||
return inject(server, { | ||
method: 'UPDATE', | ||
method: 'PUT', | ||
url: { | ||
@@ -108,0 +108,0 @@ pathname: `/api/things/${thingId}`, |
8920
10