implemented user list and editing other users for admin
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user