From dd260e27bb76927858da63fd6cd7cee70440cd5e Mon Sep 17 00:00:00 2001 From: smaxwellstewart Date: Mon, 29 Sep 2014 11:24:25 +0200 Subject: [PATCH] corrected type in readme --- README.md | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ca077b0..8133f6d 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ var CRUD = { access: 'normal' // Sets which role can update }, // Delete options - delete: { + del: { access: 'normal' // Sets which role can update }, // Joi options when validating payloads @@ -121,7 +121,7 @@ Once we have configured toothache, the following request handlers will be expose - This route will delete a doc with any supplied `payload`. - Accepted methods: `DELETE` with an `id` parameter set in route's `path` field. - The following toothache `options` will affect this handler: - - `delete.access` - If set to `admin` only admin users will be able to delete a doc. If set to normal, both admin and normal users have delete access. + - `del.access` - If set to `admin` only admin users will be able to delete a doc. If set to normal, both admin and normal users have delete access. *Example* diff --git a/package.json b/package.json index f88fa27..559e59f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "toothache", - "version": "1.1.0", + "version": "1.1.1", "description": "Hapi plugin that removes the toothache from creating CRUD endpoints for MongoDB.", "main": "index.js", "scripts": {