Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "baucis", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -1,3 +0,3 @@ | ||
baucis v0.5.0 | ||
=============== | ||
baucis v0.5.1 | ||
============= | ||
@@ -128,3 +128,3 @@ Baucis is Express middleware that creates configurable REST APIs using Mongoose schemata. | ||
| request | This stage of middleware will be called after baucis applies defaults based on the request, but before the Mongoose query is generated | | ||
| query | This stage of middleware will be called after baucis applies defaults to the Mongoose query object, but before the documents or count is retrieved from the databased. The query can be accessed in your custom middleware via `request.baucis.query`. | | ||
| query | This stage of middleware will be called after baucis applies defaults to the Mongoose query object, but before the documents or count is retrieved from the database. The query can be accessed in your custom middleware via `request.baucis.query`. | | ||
| documents | This stage of middleware will be called after baucis executes the query, but before the documents or count are sent in the response. The documents/count can be accessed in your custom middleware via `request.baucis.documents`. | | ||
@@ -166,10 +166,2 @@ | ||
To disable verbs completely: | ||
baucis.rest({ | ||
singular: 'vegetable', | ||
del: false, | ||
put: false | ||
}); | ||
Controller Options | ||
@@ -187,2 +179,3 @@ ------------------ | ||
| lastModified | Set the `Last-Modified` HTTP header useing the given field. Currently this field must be a `Date`. | | ||
| head, get, post, put, del | May be set to false to disable those HTTP verbs completely for the controller | | ||
@@ -189,0 +182,0 @@ An example of embedding a controller within another controller |
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
288863
216