Middleware to return 401 (Unauthorized) on the specified HTTP method.
npm install unauthorizedjs
npm i unauthorized --save
`
Usage
`js
const unauthorized = require('unauthorized')
const router = require('express').Router()
router.use('/path', unauthorized('delete'))
// DELETE /path 401 (Unauthorized)
`
Contributing
I'd love for you to contribute and make unauthorized even better than it is today!
$3
`
git clone https://github.com/Zertz/unauthorized.git
npm install
npm test
``