Monday 22 May 2017

is it "okay" to put codes in the routes?

So coming from the PHP world, I am diving into NodeJS, ExpressJS to be more precise, one of the things I find a bit difficult is the "we have no structure, do as you like approach". I've always learned that code in routes is no-go, I would learn it "correctly" the first time, So I'm looking at this Gothinkster app example http://ift.tt/2jP9MEm And see all the logic in the routes, so I guess my question is if it's actually are normal, and if people have some other app examples they could share.

Submitted May 22, 2017 at 07:44PM by cawex

No comments:

Post a Comment