Closed waxim closed 10 years ago
Modified line 156
return (window.location.hash) ? window.location.hash.split('#')[1] : "default";
now I can register a controller as "default"
The home route us triggered by providing an empty route:
var router = new Grapnel();
router.get('', function(req){
// Do stuff
});
There is currently no way to register a "home" route, to be triggered when the hash is empty?