summaryrefslogtreecommitdiff
path: root/test/server.php
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-11-22 17:39:59 +0100
committerDaniel Weipert <code@drogueronin.de>2023-11-22 17:40:03 +0100
commitb51d8c76dd49f6474c1299742ff9d41462fa9dca (patch)
tree5b58b29e90ef3983c0c4796b2a56209bc8634e21 /test/server.php
parentfcbbc6c472f59eaaa55331863d37535f06736681 (diff)
[DocumentServer] add directory listing
Diffstat (limited to 'test/server.php')
-rw-r--r--test/server.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/server.php b/test/server.php
index c90942a..adc9d05 100644
--- a/test/server.php
+++ b/test/server.php
@@ -13,6 +13,9 @@ $server = new Server(
],
);
-$server->onRequest(new DocumentServer(__DIR__));
+$server->onRequest(new DocumentServer(
+ documentRoot: __DIR__,
+ useDirectoryListing: true
+));
$server->listen();