From b51d8c76dd49f6474c1299742ff9d41462fa9dca Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 22 Nov 2023 17:39:59 +0100 Subject: [DocumentServer] add directory listing --- test/server.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/server.php') 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(); -- cgit v1.2.3