feature: 백엔드 api 정의 및 프론트엔드 엔드포인트 전환#22
Merged
DaehyunKim96 merged 2 commits intomainfrom Mar 31, 2026
Merged
Conversation
# Conflicts: # backend/Cargo.lock # backend/src/main.rs # backend/src/web.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
목적
주요 변경사항
테스트 확인 포인트:
curl http://localhost:3000/health
curl "http://localhost:3000/api/master-policies"
curl "http://localhost:3000/api/flight-policies"
curl -N "http://localhost:3000/api/events"
▎ 30초마다 event: heartbeat 이벤트가 흘러야 정상. 온체인 데이터 변경 시 flight_policy_updated 이벤트
수신.
- 브라우저 DevTools → Network 탭에서 events 요청이 Pending(SSE 연결 유지) 상태인지 확인
- 기존에 있던 api.devnet.solana.com 직접 요청이 사라졌는지 확인 (429 에러 해소)
FAQ
PoolStatus의 getTokenAccountBalance()는 여전히 Solana RPC 직접 호출. 이건 실제 토큰 잔액 조회이고: