fix: [bending] 절곡품 API 화이트리스트 추가 및 presignedUrl 에러 핸들링

- bending-items, guiderail-models 등 MNG→API 호출 라우트 화이트리스트 등록
- BendingItemResource에서 S3 미설정 환경 presignedUrl 에러 try-catch 처리
This commit is contained in:
김보곤
2026-03-21 09:40:11 +09:00
parent e402b03452
commit ccdc28c44e
2 changed files with 11 additions and 1 deletions

View File

@@ -143,6 +143,12 @@ public function handle(Request $request, Closure $next)
'api/v1/internal/exchange-token', // 내부 서버간 토큰 교환 (HMAC 인증 사용)
'api/v1/admin/fcm/*', // Admin FCM API (MNG에서 API Key만으로 접근)
'api/v1/app/*', // 앱 버전 확인/다운로드 (API Key만 필요)
'api/v1/bending-items', // 절곡 기초관리 (MNG에서 API Key + X-TENANT-ID로 접근)
'api/v1/bending-items/*', // 절곡 기초관리 상세/수정/삭제
'api/v1/guiderail-models', // 절곡품 가이드레일 (MNG에서 API Key + X-TENANT-ID로 접근)
'api/v1/guiderail-models/*', // 절곡품 가이드레일 상세
'api/v1/items/*/files', // 품목 파일 (절곡품 이미지 업로드/조회)
'api/v1/files/*/presigned-url', // 파일 presigned URL (이미지 표시)
];
// 현재 라우트 확인 (경로 또는 이름)