Browse Source

* LDV::Zerobin->_metadata_path

master
Alex 'AdUser' Z 9 years ago
parent
commit
e8a5a11406
  1. 3
      lib/LDV/Zerobin.pm

3
lib/LDV/Zerobin.pm

@ -11,8 +11,9 @@ use Mojo::Util qw(b64_encode b64_decode decode encode);
sub _metadata_path { sub _metadata_path {
my ($self, $time) = @_; 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 { sub _metadata_save {

Loading…
Cancel
Save