From 004b41a6a19ebfc3e714d6829bd6cc2591cd56b1 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Thu, 28 Jan 2021 14:14:04 +0000 Subject: [PATCH] Update 'filterRoutes.js' --- filterRoutes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filterRoutes.js b/filterRoutes.js index 88d1ccc..f1b5e46 100644 --- a/filterRoutes.js +++ b/filterRoutes.js @@ -1,5 +1,7 @@ const express = require('express'); const router = express.Router(); +const blackHole = function (req, res) {}; + router.all('(/*)?/wp-admin/', blackHole); router.all(/.*\.php$/, blackHole); router.all(/.*\.aspx$/, blackHole); @@ -13,6 +15,5 @@ router.post('*', blackHole); router.put('*', blackHole); router.delete('*', blackHole); -const blackHole = function (req, res) {}; module.exports = router