diff --git a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java index 1b509e7..f6ec24f 100644 --- a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java +++ b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java @@ -115,11 +115,11 @@ ////////// // お気に入りの本のbook_idを削除する (DELETE) -// @Path("/accounts/{account_id}/favorites/{other_account_id}/{book_id}") +// @Path("/{account_id}/favorites/{other_account_id}/{book_id}") // @DELETE // いいねした本のアカウントIDとbook_idを追加する(いいねした側に追加) (PUT) - //@Path("/accounts/{account_id}/favorites/{other_account_id}/{book_id}") + //@Path("/{account_id}/favorites/{other_account_id}/{book_id}") // @PUT @@ -129,7 +129,7 @@ // アカウントidとパスワードでログインし、tokenを返す (POST) @Path("/{account_id}/login") @POST - public void login(@PathParam("account_id") String accountId,@FormParam("password") String password) { - accountManager.login(accountId, password); + public String login(@PathParam("account_id") String accountId,@FormParam("password") String password) { + return accountManager.login(accountId, password); } }