diff --git a/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java b/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java index 2506eb7..c6e9d72 100644 --- a/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java +++ b/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java @@ -74,10 +74,11 @@ @Path("/{aid}/pageMap/0/layers/0/strokes") @DELETE @Produces(MediaType.APPLICATION_JSON) - public void deleteStrokes(@PathParam("aid") Integer aid, @FormParam("uid") Integer uid) { + public String deleteStrokes(@PathParam("aid") Integer aid, @FormParam("uid") Integer uid) { var animation = gallery.getAnimationInformation(aid); strokes.clear(); + return "LGTM?"; // if(animation != null) { // this.Test.setStrokes(pen, color, thick); // }else{ @@ -90,11 +91,12 @@ @Path("/{aid}/pageMap/0/layers/0/strokes/{strokeNo}") @DELETE @Produces(MediaType.APPLICATION_JSON) - public void deleteStrokeNo(@PathParam("aid") Integer aid, @PathParam("strokeNo") Integer strokeNo) { + public String deleteStrokeNo(@PathParam("aid") Integer aid, @PathParam("strokeNo") Integer strokeNo) { var animation = gallery.getAnimationInformation(aid); int no = strokeNo; strokes.remove(no); + return "やかんの麦茶"; // if(animation != null) { // this.Test.setStrokes(pen, color, thick); // }else{