mda-snp-batch 기반으로 snp-sync-batch 프로젝트 생성 - 프론트엔드: Thymeleaf → React + TypeScript + Vite + Tailwind CSS 전환 - 컨텍스트: /snp-sync, 포트 8051 - 재수집(Recollection) 관련 코드 제거 - displayName → job_schedule.description 기반으로 전환 - 누락 API 추가 (statistics, jobs/detail, executions/recent) - 실행 이력 조회 속도 개선 (JDBC 경량 쿼리) - 스케줄 CRUD API 메서드 매핑 수정 (PUT/DELETE) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
685 B
Java
23 lines
685 B
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({"/", "/jobs", "/executions", "/executions/{id:\\d+}",
|
|
"/schedules", "/schedule-timeline",
|
|
"/jobs/**", "/executions/**",
|
|
"/schedules/**", "/schedule-timeline/**"})
|
|
public String forward() {
|
|
return "forward:/index.html";
|
|
}
|
|
}
|