/[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 272 by dpavlin, Wed Nov 5 08:20:46 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('/x/:class/:controller/:action')
36                    ->to(controller => 'run', action => 'markup', class => 'Frey::Inspector' );
37    
38      # Default route      # Default route
39      $r->route('/:controller/:action/:id')          $r->route('/:class/:action/:controller')
40        ->to(controller => 'example', action => 'welcome', id => 1);                  ->to(controller => 'run', action => 'markup', class => 'Frey::ClassBrowser');
41  }  }
42    
43  1;  1;

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

  ViewVC Help
Powered by ViewVC 1.1.26