fhsav / clock.js

The FHS Clock built with Node.
https://fhsclock-js.herokuapp.com
Mozilla Public License 2.0
5 stars 2 forks source link

Implement routes #1

Closed gluxon closed 11 years ago

gluxon commented 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

gluxon commented 11 years ago

I ran into some issues with function scope not retaining, but the stackoverflow thread below described a solution well.

http://stackoverflow.com/questions/8864626/using-routes-in-express-js