Closed gluxon closed 11 years ago
Currently, app.get is being given a simple callback for each type of page that can be requested. Continuing this will cause the index file to grow very large.
Using the routes feature of express is better for organization in the long term.
http://stackoverflow.com/questions/8864626/using-routes-in-express-js
I ran into some issues with function scope not retaining, but the stackoverflow thread below described a solution well.
Currently, app.get is being given a simple callback for each type of page that can be requested. Continuing this will cause the index file to grow very large.
Using the routes feature of express is better for organization in the long term.
http://stackoverflow.com/questions/8864626/using-routes-in-express-js