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);
|
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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user