Skip to content
Myr

remove deprecation message about passing path as array

Before adoption: this commit came in with the history the project adopted, so no landing records it.

backport commit 6b19e3dc0a3b303c541708860a6f9de2ae281b9d

authored by Roman Shtylman · committed by Douglas Christopher Wilson · parent 40a43eb · Browse files · 1 file+0 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−5 removed

  • other:+0 added−5 removed

1 file+0 added−5 removed

modified:lib/application.js-5 removed
398 unmodified lines
399methods.forEach(function(method){400 app[method] = function(path){401 if ('get' == method && 1 == arguments.length) return this.set(path);402403 // deprecated404 if (Array.isArray(path)) {405 console.trace('passing an array to app.VERB() is deprecated and will be removed in 4.0');406 }407403 // if no router attached yet, attach the router404 if (!this._usedRouter) this.use(this.router);405406 // setup route
123 unmodified lines