deletemapping 어노테이션 제거.
parent
cbfc8f188f
commit
50bb514733
|
|
@ -124,7 +124,7 @@ public class BoardController {
|
|||
mav.addObject("logList", boardService.selectContentLog(content.getContentSeq()));
|
||||
return mav;
|
||||
}
|
||||
@DeleteMapping("/deleteContent")
|
||||
@PostMapping("/deleteContent")
|
||||
public Integer deleteContent(Board content, @AuthenticationPrincipal UserInfo loginUser){
|
||||
return boardService.deleteContent(content, loginUser);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public class adminController {
|
|||
boardCategoryService.insertBoardCategory(categoryList);
|
||||
return categoryList.get(0).getDepth();
|
||||
}
|
||||
@DeleteMapping("/deleteCategory")
|
||||
@PostMapping("/deleteCategory")
|
||||
@ResponseBody
|
||||
public int deleteBoardCategory(Integer categorySeq, Integer depth) {
|
||||
boardCategoryService.deleteBoardCategory(categorySeq, depth);
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ $(document).on('click', '.deleteCategoryBtn', function (){
|
|||
}
|
||||
if(confirm(category+"의 선택된 분류를 삭제하시겠습니까?"+msg)){
|
||||
$.ajax({
|
||||
type : 'DELETE',
|
||||
type : 'POST',
|
||||
url : "/admin/deleteCategory",
|
||||
data : {categorySeq: categorySeq, depth: depth},
|
||||
beforeSend: function (xhr){
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ $(document).on('click', '#zipDownBtn', function (){
|
|||
$(document).on('click', '#deleteBtn', function (){
|
||||
if(confirm("이 게시물을 삭제하시겠습니까?\n되돌릴 수 없습니다.")){
|
||||
$.ajax({
|
||||
type : 'DELETE',
|
||||
type : 'POST',
|
||||
url : "/board/deleteContent",
|
||||
data : {contentSeq: Number($(this).attr("data-contentseq"))},
|
||||
beforeSend: function (xhr){
|
||||
|
|
|
|||
Loading…
Reference in New Issue