$time = $time_travel;
}
- my $path = '/tmp/changes/';
+ my $path = '/tmp/actions/';
mkdir $path unless -e $path;
$path .= sprintf '%.4f.%s', $time, join('.', @$parts);
}
}
-
# This method will run once at server start
sub startup {
my $self = shift;
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' );
save_tx( $self, $tx );
}
);
+
+ eval 'use MojoFacets::Plugin::NYTProf';
+ if ( $@ ) {
+ warn "profile disabled: ",substr($@,0,40) if $@;
+ } else {
+ MojoFacets::Plugin::NYTProf->register( $self );
+ }
}