- Response JSON 원본 반환 (ApiResponse 래핑 제거, executeRaw 추가) - 메뉴명 변경: Bypass API → API 관리 - 사용자용 API 카탈로그 페이지 (/bypass-catalog) 추가 - 운영 환경 코드 생성 차단 (app.environment=prod 시 비활성화) - Bypass API 코드 생성 (compliance, risk 도메인) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
1.0 KiB
Java
26 lines
1.0 KiB
Java
package com.snp.batch.global.controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
/**
|
|
* SPA(React) fallback 라우터
|
|
*
|
|
* React Router가 클라이언트 사이드 라우팅을 처리하므로,
|
|
* 모든 프론트 경로를 index.html로 포워딩한다.
|
|
*/
|
|
@Controller
|
|
public class WebViewController {
|
|
|
|
@GetMapping({"/", "/dashboard", "/jobs", "/executions", "/executions/{id:\\d+}",
|
|
"/recollects", "/recollects/{id:\\d+}",
|
|
"/schedules", "/schedule-timeline", "/monitoring",
|
|
"/bypass-catalog", "/bypass-config", "/screening-guide", "/risk-compliance-history",
|
|
"/dashboard/**", "/jobs/**", "/executions/**", "/recollects/**",
|
|
"/schedules/**", "/schedule-timeline/**", "/monitoring/**",
|
|
"/bypass-catalog/**", "/bypass-config/**", "/screening-guide/**", "/risk-compliance-history/**"})
|
|
public String forward() {
|
|
return "forward:/index.html";
|
|
}
|
|
}
|