Skip to content

Commit

Permalink
Merge pull request #2 from smaxwellstewart/dev
Browse files Browse the repository at this point in the history
corrected type in readme
  • Loading branch information
kidtronnix committed Sep 29, 2014
2 parents 5f4a4e5 + dd260e2 commit 9bf157a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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
Expand Down Expand Up @@ -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*

Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down

0 comments on commit 9bf157a

Please sign in to comment.