my ($self) = @_;
sub (/**.*) {
my $path = $_[1];
- return unless $path =~ s/\/-/\//;
+ return unless $path =~ s/(?=\/|^)-//;
App::SCS::Web::redispatch_to("/static/${path}");
},
sub (/static/...) { $self->_static_handler },
my ($self) = @_;
sub (/**.*) {
my $path = $_[1];
- return unless $path =~ s/\/-/\//;
+ return unless $path =~ s/(?=\/|^)-//;
App::SCS::Web::redispatch_to("/static/${path}");
},
sub (/static/...) { $self->_static_handler },