diff --git a/openbsd.app.pl b/openbsd.app.pl index 6e9153b..6af7c9e 100755 --- a/openbsd.app.pl +++ b/openbsd.app.pl @@ -5,14 +5,14 @@ use warnings; use strict; -use Time::HiRes qw( time ); +use Time::HiRes qw(time); use File::Basename; use feature 'switch'; use Mojolicious::Lite -signatures; use Mojo::SQLite; -use Text::Markdown qw{ markdown }; +use Text::Markdown qw{markdown}; my $dbFile = "combined.db"; @@ -25,7 +25,7 @@ if ( $^O eq "openbsd" ) { OpenBSD::Unveil::unveil( dirname($0), "rwc" ) or die; OpenBSD::Unveil::unveil( "/usr/local", "r" ) or die; - OpenBSD::Pledge::pledge(qw( stdio dns inet rpath proc flock wpath cpath )) + OpenBSD::Pledge::pledge(qw(stdio dns inet rpath proc flock wpath cpath)) or die; } @@ -113,7 +113,6 @@ sub fix_fts ($s) { return $s; } - get '/tree' => sub ($c) { my $v = $c->validation; @@ -205,14 +204,25 @@ __DATA__ title="<%= $title %>" href="/openbsd-app-opensearch.xml" /> +