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", "/bypass-account-requests", "/bypass-account-management", "/bypass-access-request", "/dashboard/**", "/jobs/**", "/executions/**", "/recollects/**", "/schedules/**", "/schedule-timeline/**", "/monitoring/**", "/bypass-catalog/**", "/bypass-config/**", "/screening-guide/**", "/risk-compliance-history/**", "/bypass-account-requests/**", "/bypass-account-management/**", "/bypass-access-request/**"}) public String forward() { return "forward:/index.html"; } }