From 90f5d4ea4ddcded966c09809f3e65a54941a81c8 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 06 Apr 2021 09:00:43 +0000
Subject: [PATCH] Ablageort bearbeiten und loeschen in Arbeit

---
 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