mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: fix typo, show route in deprecation notice for third-param removal in setupPageRoute
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user