Persoenliche Mediazentrale
ulrich
2021-04-10 005d7a23659592b32d2dce25ae0b08850f29a241
src/de/uhilger/mediaz/api/ListHandler.java
@@ -47,7 +47,7 @@
  @Override
  protected String get(HttpExchange e) {
    String path = e.getRequestURI().toString();
    String[] elems = path.split(App.getRs(Server.RB_SLASH));
    String[] elems = path.split(Server.SLASH);
    String plname = elems[elems.length - 1];
    FileStorage fs = new FileStorage(App.getInitParameter(App.getRs(App.RB_AP_CONF)));
    String json = fs.readJson(FileStorage.ST_ABSPIELLISTE, plname);
@@ -57,7 +57,7 @@
  @Override
  protected String put(HttpExchange e) throws IOException {
    String path = e.getRequestURI().toString();
    String[] elems = path.split(App.getRs(Server.RB_SLASH));
    String[] elems = path.split(Server.SLASH);
    String response = "ListHandler.put: ungueltiger URL";
    switch(elems.length) {
      case 5: // ohne nr am Ende