채널 개별 수정

DB를 이용하여 채널 개별 수정하기 유효성 검사 채널 개별 수정의 경우에는 param을 통해 채널번호를 받고, body값으로는 title과 description을 받지만 description은 필수항목이 아니기 때문에 유효성검사에서는 제외하였습니다. param("id").notEmpty().withMessage("채널번호가 없습니다."), body("title").notEmpty().withMessage("제목을 입력하세요"), 채널 개별 수정 let { id } = req.params; id = parseInt(id); const { title, description } = req.body; const update_sql ="update channels set title = ? , description..
코드둥
'채널 개별 수정' 태그의 글 목록