Feautre/be/#134 Spring Cloud Gateway를 이용한 Api 게이트웨이 생성 #142
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.
Overview
Spring Cloud Gateway가지고 Api gateway 만들었습니다.
Related Issue
Issue Number : #134
Task Details
!!주의!! 반드시 다른 브랜치에서 pull받아서 해보세요. 불안정할 수도 있습니다.
Api Gateway 생성
Spring, Ruby, AI 서버로 가기전에 앞단에서 jwt 토큰을 체크하고 라우팅을 해주는 서버입니다.
추후, Api 횟수 제한을 걸 수 있는 limiter도 추가할 것입니다.
코드 리펙토링
Gateway 추가에 따라서 모든 유저의 UUID (Token에서 원래 추출해야됐던건들)는 X-User-ID를 받아서 쓰시면 됩니다.
Test Scope & Checklist (Optional)
Review Requirements
바쁜 관계로 PR 간단하게 적습니다.