updating method call

This commit is contained in:
2025-08-25 12:17:00 +02:00
parent bc8c8746be
commit 8d48086987

View File

@@ -54,7 +54,7 @@ public class ProjectModule extends BaseHandler implements ProjectService {
if (user.isEmpty()) return unauthorized(ex); if (user.isEmpty()) return unauthorized(ex);
var head = path.pop(); var head = path.pop();
return switch (head) { return switch (head) {
case null -> postProject(ex,user.get()); case null -> super.doGet(path, ex);
default -> { default -> {
var projectId = Long.parseLong(head); var projectId = Long.parseLong(head);
head = path.pop(); head = path.pop();
@@ -83,7 +83,7 @@ public class ProjectModule extends BaseHandler implements ProjectService {
head = path.pop(); head = path.pop();
yield switch (head){ yield switch (head){
case null -> patchProject(ex,projectId,user.get()); case null -> patchProject(ex,projectId,user.get());
default -> super.doGet(path,ex); default -> super.doPatch(path,ex);
}; };
} }
}; };