From a367bbd80bb033f74c622fa9c253c683c1ce4ac3 Mon Sep 17 00:00:00 2001 From: hatim boufnichel Date: Thu, 20 May 2021 20:26:41 +0200 Subject: [PATCH] process delete like get --- src/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes.js b/src/routes.js index e0081722..313c4e65 100644 --- a/src/routes.js +++ b/src/routes.js @@ -339,7 +339,7 @@ module.exports = async ( return res.status(401).json(error) } - if (req.method === 'GET') { + if (req.method === 'GET' || req.method === 'DELETE') { return next() }