Skip to content

Node.js based forum software built for the modern web

feat: fix typo, show route in deprecation notice for third-param removal in `setupPageRoute`

Julian Lam14110596985b
diff --git a/src/routes/helpers.js b/src/routes/helpers.js
index cea52ee050..62eec31f07 100644
--- a/src/routes/helpers.js
+++ b/src/routes/helpers.js
@@ -12,7 +12,7 @@ helpers.setupPageRoute = function (...args) {
const controller = args[args.length - 1];
if (args.length === 5) {
- winston.warn('[helpers.setupPageRotue] passing middleware as third param is deprecated');
+ winston.warn(`[helpers.setupPageRoute(${name})] passing \`middleware\` as the third param is deprecated, it can now be safely removed`);
}
middlewares = [