Unfollow returns 204

This commit is contained in:
2026-07-27 10:20:20 +02:00
committed by david.alvarez
parent 0adf89bbe8
commit ce9a612b3b
@@ -17,6 +17,7 @@ import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST; import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path; import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam; import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.core.Response;
import java.util.List; import java.util.List;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
@@ -73,9 +74,9 @@ public class ArtistResource {
@DELETE @DELETE
@Path("/{mbid}") @Path("/{mbid}")
public TemplateInstance unfollow(@PathParam("mbid") String mbid) { public Response unfollow(@PathParam("mbid") String mbid) {
artistService.unfollow(mbid); artistService.unfollow(mbid);
return feedFragment(0, false, false); return Response.noContent().build();
} }
@GET @GET