fixed paths in ApiEndpoint
Build Docker Image / Docker-Build (push) Successful in 41s
Build Docker Image / Clean-Registry (push) Successful in 6s

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-08-31 18:05:51 +02:00
parent d47aad0de9
commit 23f5db7a4f
@@ -89,7 +89,7 @@ public class ApiEndpoint extends PathHandler {
@Override
public boolean doDelete(Path path, HttpExchange ex) throws IOException {
if (path.equals("/event")) return sendContent(ex, delete(path, ex));
if (path.equals("event")) return sendContent(ex, delete(path, ex));
return unknownPath(ex, path);
}
@@ -114,13 +114,13 @@ public class ApiEndpoint extends PathHandler {
@Override
public boolean doPatch(Path path, HttpExchange ex) throws IOException {
if (path.equals("/event")) return sendContent(ex, updateEvent(ex));
if (path.equals("event")) return sendContent(ex, updateEvent(ex));
return unknownPath(ex, path);
}
@Override
public boolean doPost(Path path, HttpExchange ex) throws IOException {
if (path.equals("/event")) return sendContent(ex, createEvent(ex));
if (path.equals("event")) return sendContent(ex, createEvent(ex));
return unknownPath(ex, path);
}