hapi-405-routes
Advanced tools
Comparing version 0.6.0 to 0.6.1
{ | ||
"name": "hapi-405-routes", | ||
"version": "v0.6.0", | ||
"version": "v0.6.1", | ||
"description": "Allows 405 'Method Not Allowed' responses for hapi routes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# Hapi-405-Routes | ||
[![Build Status](https://travis-ci.org/RiptideElements/hapi-405-routes.svg?branch=master)](https://travis-ci.org/RiptideElements/hapi-405-routes) | ||
Plugin for [Hapi.js](http://hapijs.com/) to include 405 Method Not Allowed Responses on routes for a given set of methods. | ||
@@ -9,5 +12,9 @@ | ||
`GET /farm/goats` -- route which retrieves data about all goats on the farm. | ||
```js | ||
GET /farm/goats // route which retrieves data about all goats on the farm. | ||
``` | ||
`POST /farm/goats` -- route which allows for creation of additional goats. | ||
```js | ||
POST /farm/goats // route which allows for creation of additional goats. | ||
``` | ||
@@ -14,0 +21,0 @@ By default, hapi responds with a 404 if there is not route/method match registered with the service. If a user were to request `OPTIONS /farm/goats` they would get a 404 response. |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
33766
13
76
1