makesites / brisk

Automation for Express.js #express.js #javascript
3 stars 1 forks source link

Overwriting app routes #12

Closed tracend closed 12 years ago

tracend commented 12 years ago

Currently all the routes are setup on brisk init()

This has a number of side-effects:

  1. The routes that are setup by helper files are overwritten
  2. The order of the app configuration breaks, with app.router included prematurely

To fix the hierarchy the helper files will need to include their routes on process.nextTick()

And Brisk should respect the routes setup by helpers and execute the setup asynchronously