Closed sekoyo closed 9 years ago
Hi, when calling director.http.Router(routes) with Node v4.2.1 with the --es_staging flag I am getting:
director.http.Router(routes)
--es_staging
/.../node_modules/director/lib/director/http/index.js:33 this.extend(exports.methods.concat(['before', 'after'])); ^
TypeError: this.extend is not a function
Sure enough there is no definition of extend on that Router function. Where is it supposed to be coming from?
extend
Router
I was missing the new keyword
new
Hi, when calling
director.http.Router(routes)
with Node v4.2.1 with the--es_staging
flag I am getting:/.../node_modules/director/lib/director/http/index.js:33 this.extend(exports.methods.concat(['before', 'after'])); ^
TypeError: this.extend is not a function
Sure enough there is no definition of
extend
on thatRouter
function. Where is it supposed to be coming from?