Building A Node CMS With KeystoneJS, Mongo DB, React and Redux Part III
Velizar Mihaylov
4107

There seems to be an error in the file you named “ serverWithAPI”.

The line #11 which says:

app.get(‘/api/recipe/’, keystone.middleware.api, routes.api.recipe.list);

The “routes.api.recipe.list” should say routes.api.index.list. Otherwise it results in the error:

TypeError: Cannot read property ‘list’ of undefined