mean-stripdown icon indicating copy to clipboard operation
mean-stripdown copied to clipboard

Fails at .get() in config/routes.js file

Open anilkmirge opened this issue 10 years ago • 0 comments

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. (/Users/username/Development/demo/mean-stripdown/server.js:46:27) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32)

anilkmirge avatar Mar 25 '14 00:03 anilkmirge