Skip to content

Middleware to return 403 (Forbidden) on the specified HTTP method.

License

Notifications You must be signed in to change notification settings

Zertz/forbidden

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

forbidden Build Status NPM version

Middleware to return 403 (Forbidden) on the specified HTTP method.

npm i forbidden --save

Usage

const forbidden = require('forbidden')
const router = require('express').Router()

router.use('/path', forbidden('delete'))

// DELETE /path 403 (Forbidden)

Contributing

I'd love for you to contribute and make forbidden even better than it is today!

Getting started

git clone https://github.com/Zertz/forbidden.git
npm install
npm test

Guidelines

  • Standard style
  • Use ES2015 features when appropriate

About

Middleware to return 403 (Forbidden) on the specified HTTP method.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published