mean-stripdown
mean-stripdown copied to clipboard
Fails at .get() in config/routes.js file
I keep getting the following error and was wondering if anyone else has come across this peculiar complain. Essentially, it fails at this line app.get('/leagues/:leagueId', leagues.show) in config/routes.js
/Users/username/Development/demo/mean-stripdown/node_modules/express/lib/router/index.js:291
throw new Error(msg);
^
Error: .get() requires callback functions but got a [object Undefined]
at /Users/username/Development/demo/mean-stripdown/node_modules/express/lib/router/index.js:291:11
at Array.forEach (native)
at Router.route (/Users/username/Development/demo/mean-stripdown/node_modules/express/lib/router/index.js:287:13)
at Router.(anonymous function) as get
at Function.app.(anonymous function) as get
at module.exports (/Users/username/Development/demo/mean-stripdown/config/routes.js:20:7)
at Object.