From ca9872be43938cf03f23ca9ac05a2acd69429cf3 Mon Sep 17 00:00:00 2001
From: ulrich <undisclosed@undiclosed>
Date: Tue, 06 Apr 2021 14:49:30 +0000
Subject: [PATCH] Katalog (in Arbeit)

---
 src/de/uhilger/mediaz/Server.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/de/uhilger/mediaz/Server.java b/src/de/uhilger/mediaz/Server.java
index 8fedc40..af203fb 100644
--- a/src/de/uhilger/mediaz/Server.java
+++ b/src/de/uhilger/mediaz/Server.java
@@ -19,6 +19,7 @@
 
 import com.sun.net.httpserver.HttpServer;
 import de.uhilger.mediaz.api.FileHandler;
+import de.uhilger.mediaz.api.ListFileHandler;
 import de.uhilger.mediaz.api.StopServerHandler;
 import de.uhilger.mediaz.api.StorageHandler;
 import de.uhilger.mediaz.store.FileStorage;
@@ -130,8 +131,9 @@
       if(e instanceof Ablageort) {
         Ablageort ort = (Ablageort) e; 
           Ablageort ablageort = (Ablageort) e;
+          logger.fine(ctx + ablageort.getUrl());
           server.createContext(ctx + ablageort.getUrl(), 
-                  new FileHandler(new File(ablageort.getOrt()).getAbsolutePath()));
+                  new ListFileHandler(new File(ablageort.getOrt()).getAbsolutePath()));
       }
     }
   }

--
Gitblit v1.9.3