From e8a5a11406fbb7823b56a0d110307fe0b49c677e Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 29 Dec 2015 15:06:08 +1000 Subject: [PATCH] * LDV::Zerobin->_metadata_path --- lib/LDV/Zerobin.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/LDV/Zerobin.pm b/lib/LDV/Zerobin.pm index 39a4fc8..c2bcd4b 100644 --- a/lib/LDV/Zerobin.pm +++ b/lib/LDV/Zerobin.pm @@ -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 {