From a43e1a055018aab9590c88c45d8495f99bfb6254 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Mon, 05 Apr 2021 18:39:49 +0000
Subject: [PATCH] Ablageort-Liste

---
 src/de/uhilger/mediaz/api/AblageTestHandler.java |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/de/uhilger/mediaz/api/AblageTestHandler.java b/src/de/uhilger/mediaz/api/AblageTestHandler.java
index e43f4c4..b22a6f5 100644
--- a/src/de/uhilger/mediaz/api/AblageTestHandler.java
+++ b/src/de/uhilger/mediaz/api/AblageTestHandler.java
@@ -21,19 +21,20 @@
 
   @Override
   public void handle(HttpExchange e) throws IOException {
-    Ablageort ablage = new Ablageort();
-    ablage.setName("Katalog");
-    ablage.setOrt("/home/ulrich/Videos");
+    Ablageort ablageort = new Ablageort();
+    ablageort.setName("Katalog");
+    ablageort.setOrt("/home/ulrich/Videos");
+    ablageort.setUrl("/media/test");
     
     Gson gson = new Gson();
-    File mediaOrdner = new File(ablage.getOrt());
+    File mediaOrdner = new File(ablageort.getOrt());
     File[] files = mediaOrdner.listFiles();
     String json = gson.toJson(files);
     
     StringBuilder sb = new StringBuilder();
     sb.append(json);
     
-    json = gson.toJson(ablage);
+    json = gson.toJson(ablageort);
     sb.append(json);
     
     byte[] b = sb.toString().getBytes();

--
Gitblit v1.9.3