makesites / brisk

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

Method fallback #9

Closed tracend closed 12 years ago

tracend commented 12 years ago

Currently the method fallback doesn't work.

When the controller is reverted to the "main" controller, the name we have set as the controller needs to become "main" and the method exec needs to test against that name.

For example, for the URL:

/logout 

if there is no controller named "logout" the main controller should lookup for a method named "logout".

Currently the method always executed is "index"