@ -11,8 +11,9 @@ use Mojo::Util qw(b64_encode b64_decode decode encode);
sub _metadata_path {
my ($self, $time) = @_;
my $root = $self->app->config->{zerobin}->{root};
return $self->app->home->rel_file("data/zerobin/$time.json");
return $self->app->home->rel_file("$root/$time.json");
}
sub _metadata_save {