updating method call
This commit is contained in:
@@ -54,7 +54,7 @@ public class ProjectModule extends BaseHandler implements ProjectService {
|
||||
if (user.isEmpty()) return unauthorized(ex);
|
||||
var head = path.pop();
|
||||
return switch (head) {
|
||||
case null -> postProject(ex,user.get());
|
||||
case null -> super.doGet(path, ex);
|
||||
default -> {
|
||||
var projectId = Long.parseLong(head);
|
||||
head = path.pop();
|
||||
@@ -83,7 +83,7 @@ public class ProjectModule extends BaseHandler implements ProjectService {
|
||||
head = path.pop();
|
||||
yield switch (head){
|
||||
case null -> patchProject(ex,projectId,user.get());
|
||||
default -> super.doGet(path,ex);
|
||||
default -> super.doPatch(path,ex);
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user