본문 바로가기

Youtube Clone/Relationships and Route Protection

Protecting

  • 지금은 꼭 사용자가 아니더라도 주소를 통해 editBook에 접근할 수 있기 때문에, 보안성을 높여보자.
  • getEditBook과 deleteBook에서 책의 등록자와 현재 사용자가 같아야만 진행할 수 있게 if문을 추가 

bookController.js
bookController.js

 

'Youtube Clone > Relationships and Route Protection' 카테고리의 다른 글

수정  (0) 2019.09.25
Creator  (0) 2019.09.24
UserProfile and changePassword  (0) 2019.09.23