From 6a8f1ff87b7855864a751990875421260933ba8d Mon Sep 17 00:00:00 2001 From: Wesley A Date: Fri, 10 May 2019 10:55:35 -0300 Subject: [PATCH] Fixing deprecated app.del: Use app.delete --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7789c21..31436b6 100644 --- a/index.js +++ b/index.js @@ -90,7 +90,7 @@ Resource.prototype.load = function(fn){ req[id] = obj; next(); }; - + // Maintain backward compatibility if (2 == fn.length) { fn(req.params[id], callback); @@ -238,7 +238,7 @@ Resource.prototype.mapDefaultAction = function(key, fn){ this.patch(fn); break; case 'destroy': - this.del(fn); + this.delete(fn); break; } };