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

isekai-main
Julian Lam 3 years ago
parent f1bc9aa9f0
commit 1411059698

@ -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 = [

Loading…
Cancel
Save