DEV Community

Discussion on: Designing a better architecture for a Node.js API

Collapse
 
aashir1 profile image
Aashir Khan

Great article but The first image of "Create the server" heading Line no 5 is "app.use(bodyParser.json())" while it should be "server.use(bodyParser.json())"
because there is no variable with name "app".
Thanks

Collapse
 
pacheco profile image
Thiago Pacheco

That is totally right Aashir, thank you very much for reporting that. I just fixed the post :)