/[Frey]/trunk/lib/Frey/Mojo.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Mojo.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 267 by dpavlin, Wed Nov 5 08:20:37 2008 UTC revision 318 by dpavlin, Wed Nov 5 22:05:40 2008 UTC
# Line 29  sub startup { Line 29  sub startup {
29      # The routes      # The routes
30      my $r = $self->routes;      my $r = $self->routes;
31    
32    #       $r->route('/:action/:class/:controller')
33    #               ->to(controller => 'run', action => 'markup', class => 'Frey::ClassBrowser' );
34    
35    #       $r->route('/')
36    #               ->to(controller => 'run', action => 'markup', class => 'Frey::ClassBrowser');
37    
38            $r->route('/:class')
39                    ->to(controller => 'run', action => 'markup', class => 'Frey::Introspect' );
40    
41      # Default route      # Default route
42      $r->route('/:controller/:action/:id')          $r->route('/:class/:action/:controller')
43        ->to(controller => 'example', action => 'welcome', id => 1);                  ->to(controller => 'run', action => 'markup', class => 'Frey::ClassBrowser');
44    
45  }  }
46    
47  1;  1;

Legend:
Removed from v.267  
changed lines
  Added in v.318

  ViewVC Help
Powered by ViewVC 1.1.26