Refactor: 강의생성 API 로그인 된 사용자만 호출하도록 수정 #255
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
작업 개요
Refactor: 강의생성 API 로그인 된 사용자만 호출하도록 수정
작업 사항
강의생성하는 API를 기존에는 모든 사용자가 호출할 수 있었고 request body에 강의를 생성하려는 사용자 email이 담겨서 요청이 왔었는데 이 부분을 로그인한 사용자만 호출할 수 있도록 수정했습니다.
API 문서를 위한 swagger 설정들을 추가해줬습니다.
고민한 점들(필수 X)
swagger 설정들을 추가하면서 코드가 깔끔하지 못해지는거 같아서 이 부분을 추후에 개선해봐야겠다.