X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=lib%2FMojoFacets.pm;h=cfddc991aca6f65cd503c01cdb594ef7dfe18a5b;hb=29afad5b3be03cf0111193d5fc60b97d0bfddb19;hp=e68fde8d9fc42897b867f993bb8a46c676cb3d9f;hpb=d127fa1df7fe141da8127696b6750c5c169f357c;p=MojoFacets.git diff --git a/lib/MojoFacets.pm b/lib/MojoFacets.pm index e68fde8..cfddc99 100644 --- a/lib/MojoFacets.pm +++ b/lib/MojoFacets.pm @@ -28,7 +28,7 @@ sub save_tx { $time = $time_travel; } - my $path = '/tmp/changes/'; + my $path = '/tmp/actions/'; mkdir $path unless -e $path; $path .= sprintf '%.4f.%s', $time, join('.', @$parts); @@ -38,6 +38,7 @@ sub save_tx { } } +use MojoFacets::Plugin::NYTProf; # This method will run once at server start sub startup { @@ -47,7 +48,7 @@ sub startup { my $r = $self->routes; # Default route - $r->route('/:controller/:action/:id')->to('data#index', id => 1); + $r->route('/:controller/:action/:id')->to('data#index', id => 0); # $self->plugin( 'request_timer' ); @@ -58,6 +59,8 @@ sub startup { save_tx( $self, $tx ); } ); + + MojoFacets::Plugin::NYTProf->register( $self ); }