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 6a7f4ef..5707ef5 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 @@ -89,17 +89,20 @@ return "OK!"; } + + // _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ // 画像URLを返す - @Path("/{aid}/pageMap/{pid}/image") + // @PathParam Integer aid 作品のID + @Path("/{aid}/images") @GET @Produces(MediaType.APPLICATION_JSON) - public HashMap getPageUrls(@PathParam("aid") Integer aid, @PathParam("pid") Integer pid) { + public HashMap getPageUrls(@PathParam("aid") Integer aid) { Animation animation = gallery.getAnimationByAid(aid); ArrayList pages = animation.getPages(); HashMap pageUrl = new HashMap<>(); for (Page p : pages) { - String url = "http://nitta-lab-www.is.konan-u.ac.jp/gallery/" + aid + "/" + p.getPid() + "/a" + aid + "p" + p.getPid() + ".png"; + String url = "http://nitta-lab-www.is.konan-u.ac.jp/gallery/" + aid + "/" + p.getPageNo() + "/a" + aid + "p" + p.getPageNo() + ".png"; pageUrl.put(p.getPageNo(), url); }