Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hapi-405-routes

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-405-routes - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

.travis.yml

2

package.json
{
"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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc