Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#165/refactor]: article 배치 실행 api에 인증 추가 #166

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

belljun3395
Copy link
Collaborator

🎫 연관 이슈

resolved: #165

💁‍♂️ PR 내용

  • article 배치 실행 api에 인증 추가

🙏 작업

  • article 배치 실행 api에 인증 추가

🙈 PR 참고 사항

📸 스크린샷

🤖 테스트 체크리스트

  • 체크 미완료
  • 체크 완료

@belljun3395 belljun3395 requested a review from hun-ca as a code owner July 5, 2024 14:12
@github-actions github-actions bot added the refactor 기존 기능에 대해 개선할 때 사용됩니다. label Jul 5, 2024
Copy link
Member

@hun-ca hun-ca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다

Comment on lines +20 to +23
fun batchArticle(@RequestParam(value = "auth") auth: String) {
if (this.auth != auth) {
throw IllegalAccessException("Invalid Permission")
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

query param은 일반적으로 GET 요청에서만 사용(조회할 데이터에 대한 상세 구분)하는 것이 일반적입니다. 헤더나 바디로 뺄 수. ㅣㅆ는지 검토필요해보입니다

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 저도 동의합니다!
파람으로 해둔 것은 제가 아직 파이어베이스 function에 익숙하지 않아서 post 보다는 get으로 처리할 수 있는 방법으로 구현했어요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#171 에서 수정하겠습니다!

level:
root: debug
auth:
batch: ${AUTH_BATCH:0518}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${AUTH_BATCH:0518} 이 필드는 어디서가져오나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

환경 변수로?!

@belljun3395 belljun3395 merged commit d109230 into main Jul 8, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor 기존 기능에 대해 개선할 때 사용됩니다.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

배치 콜 인증 추가
2 participants