mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +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];
|
const controller = args[args.length - 1];
|
||||||
|
|
||||||
if (args.length === 5) {
|
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 = [
|
middlewares = [
|
||||||
|
|||||||
Reference in New Issue
Block a user