--- branches/mojo/lib/Frey/Mojo.pm 2008/11/01 13:20:25 231 +++ branches/mojo/lib/Frey/Mojo.pm 2008/11/01 15:16:33 232 @@ -22,16 +22,20 @@ } } +use Frey::ClassLoader; + # This method will run once at server start sub startup { my $self = shift; + Frey::ClassLoader->new->load_all_classes(); + # The routes my $r = $self->routes; # Default route - $r->route('/:controller/:action/:id') - ->to(controller => 'example', action => 'welcome', id => 1); + $r->route('/:controller/:action/:class') + ->to(controller => 'run', action => 'markup', class => 'Frey::ClassBrowser'); } 1;