/usr/local/CPAN/mobirc/App/Mobirc/Web/Router.pm


package App::Mobirc::Web::Router;
use strict;
use warnings;
use HTTPx::Dispatcher;

connect ''                         => { controller => 'Root', action => 'index' };
connect 'ajax/'                    => { controller => 'Ajax',   action => 'base' };
connect 'account/:action',         => { controller => 'Account' };
connect 'mobile/'                  => { controller => 'Mobile',   action => 'index' };
connect 'mobile-ajax/'             => { controller => 'MobileAjax',   action => 'index' };
connect 'mobile-ajax/:action'      => { controller => 'MobileAjax', };
connect 'iphone/'                  => { controller => 'IPhone', action => 'base' };
connect 'iphone/:action'           => { controller => 'IPhone', };
connect 'ajax/:action'             => { controller => 'Ajax' };
connect 'mobile/:action'           => { controller => 'Mobile' };
connect 'static/:filename'         => { controller => 'Static', action => 'deliver' };

1;