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