From 43d323fa088153082a33966b19d81e9169cc7bf2 Mon Sep 17 00:00:00 2001
From: undisclosed
Date: Sat, 21 Jan 2023 16:25:28 +0000
Subject: [PATCH] Experimentell: m3u

---
 src/de/uhilger/tango/api/GeraetSteuerung.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/de/uhilger/tango/api/GeraetSteuerung.java b/src/de/uhilger/tango/api/GeraetSteuerung.java
index 3b9a65a..f5bc27a 100644
--- a/src/de/uhilger/tango/api/GeraetSteuerung.java
+++ b/src/de/uhilger/tango/api/GeraetSteuerung.java
@@ -48,12 +48,18 @@
   public static final String KMD_AUS = "aus";
   public static final String KMD_STATUS = "status";
   
+  private String conf;
+  
+  public GeraetSteuerung(String conf) {
+    this.conf = conf;
+  }
+  
   @Override
   protected String get(HttpExchange e) {
     String response;
     String path = e.getRequestURI().toString();
     String[] elems = path.split(Server.SLASH);
-    FileStorage fs = new FileStorage(App.getInitParameter(App.getRs(App.RB_AP_CONF)));
+    FileStorage fs = new FileStorage(conf);
     logger.fine(path);
     
     String geraetName = elems[5];

--
Gitblit v1.9.3