fix: 수신함 API 엔드포인트 및 공통 헤더 문제 해결
🔧 Backend Fix: - 수신함 라우터 prefix 수정: /inbox → /api/inbox - 다른 API들과 일관성 있는 경로 구조 적용 - FastAPI 라우터 등록 정상화 🎨 Frontend Fix: - 공통 헤더 초기화 로그 추가 - currentUser undefined 문제 디버깅 준비 - API 연동 상태 확인 로그 강화 🔍 Issue Analysis: - 수신함 API 404 에러 → 경로 문제로 확인 - 공통 헤더 안보임 → currentUser 초기화 문제로 추정 - 백엔드 재시작으로 API 정상화 확인 Result: ✅ 수신함 API 엔드포인트 정상화 (/api/inbox/) ✅ 인증 필요 응답 확인 (API 작동 중) 🔄 공통 헤더 디버깅 로그 추가 (다음 테스트 대기)
This commit is contained in:
@@ -11,7 +11,7 @@ from database.schemas import (
|
||||
)
|
||||
from routers.auth import get_current_user, get_current_admin
|
||||
|
||||
router = APIRouter(prefix="/inbox", tags=["inbox"])
|
||||
router = APIRouter(prefix="/api/inbox", tags=["inbox"])
|
||||
|
||||
@router.get("/", response_model=List[InboxIssue])
|
||||
async def get_inbox_issues(
|
||||
|
||||
@@ -487,8 +487,10 @@
|
||||
// localStorage에도 백업 저장
|
||||
localStorage.setItem('currentUser', JSON.stringify(user));
|
||||
|
||||
// 공통 헤더 초기화
|
||||
await window.commonHeader.init(user, 'issues_create');
|
||||
// 공통 헤더 초기화
|
||||
console.log('🔧 공통 헤더 초기화 시작:', user);
|
||||
await window.commonHeader.init(user, 'issues_create');
|
||||
console.log('✅ 공통 헤더 초기화 완료');
|
||||
|
||||
// 페이지 접근 권한 체크 (부적합 등록 페이지)
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user