Sunday 29 November 2015

Help with my first node app (express and sequelize)

I'm trying to create a simple app that will post data to sqlite database and display upcoming messages. My issue is that my sequelize model is not recognizing the request body. In callback for the "/greeting" route I print the request body to the console, but I'm having a hard time understanding why when I call Greeting.createGreeting() I get a "Cannot read property 'body' of undefined" error. Any help and advice in general is appreciated!code

Submitted November 30, 2015 at 06:33AM by whenyousaywisconsin

No comments:

Post a Comment