implemented user list and editing other users for admin

This commit is contained in:
2025-07-02 22:08:36 +02:00
parent 10c24dd93d
commit ea6ca9e45d
8 changed files with 162 additions and 69 deletions

View File

@@ -2,9 +2,9 @@
package de.srsoftware.umbrella.web;
import static de.srsoftware.tools.Optionals.nullable;
import static de.srsoftware.umbrella.core.ResponseCode.NOT_FOUND;
import static java.lang.System.Logger.Level.DEBUG;
import static java.lang.System.Logger.Level.WARNING;
import static java.net.HttpURLConnection.HTTP_NOT_FOUND;
import com.sun.net.httpserver.HttpExchange;
import de.srsoftware.tools.Path;
@@ -52,7 +52,7 @@ public class WebHandler extends PathHandler {
return sendContent(addCors(ex),bos.toByteArray());
} catch (Exception e) {
LOG.log(WARNING,"Failed to load {0}",url);
return sendContent(ex,NOT_FOUND,"Failed to load "+url);
return sendContent(ex,HTTP_NOT_FOUND,"Failed to load "+url);
}
}
}