Skip to content
Snippets Groups Projects
Commit fb2a2557 authored by 찬주 이's avatar 찬주 이
Browse files

Add delete Favorite

parent dff1ac9b
No related branches found
No related tags found
No related merge requests found
Pipeline #8365 canceled
......@@ -3,6 +3,7 @@ package kr.ajousw.myspringweb.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -52,8 +53,9 @@ public class MyspringwebController {
}
@DeleteMapping(value = "/likes/{id}")
public void deleteLikes(@PathVariable String id) {
public ResponseEntity<String> deleteLikes(@PathVariable String id) {
service.deleteFavorite(id);
return ResponseEntity.ok("Deleted");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment