express-allows

Express middleware to help you manage the allowed HTTP verbs.

Usage no npm install needed!

<script type="module">
  import expressAllows from 'https://cdn.skypack.dev/express-allows';
</script>

README

allows

Express middleware to help you manage the allowed HTTP verbs.

Basic usage:

var app = express();
app.use(allows('GET', 'PUT', 'POST'));
app.get('/', function(req, res) {
    return res.status(200).send({ hello: 'world' });
});