Merge pull request #198 from nitta-lab-2024/FavoritedRest
FavoritedRest内容変更
commit 885909f23e6c47ccf8522ede7657c196ab641393
2 parents dca6582 + 5dd5790
住田華凜 authored on 30 May
Showing 1 changed file
View
2
■■■
src/main/java/org/ntlab/citrusserver/resources/FavoritedRest.java
@Path("/{account_id}/books/{book_id}/favorited/{other_account_id}")
@DELETE
@Produces(MediaType.APPLICATION_FORM_URLENCODED)
public void removeFavorited(@PathParam("account_id") String account_id, @PathParam("book_id") Integer book_id, @PathParam("other_account_id") String other_account_id, @QueryParam("token") String token){
if(accountManager.checkToken(account_id,token)) {
if(accountManager.checkToken(other_account_id,token)) {
favoriteManager.removeFavorited(account_id, book_id, other_account_id);
favoriteManager.removeFavorites(other_account_id, account_id, book_id);//変更点(要検討)
}
}