- Spring Security Basic Auth 인증 도입 (Bypass 데이터 API만) - 계정 신청/승인/거절 백엔드 API 및 프론트엔드 구현 - 계정 관리 (CRUD, 비밀번호 재설정, 상태/기간 수정) - 401 응답에 계정 상태 상세 메시지 포함 - Swagger UI Basic Auth 스킴/환경별 그룹 노출 연동 - 신청 폼 정규식 검증 및 접근기간 프리셋 선택
28 lines
1.2 KiB
Java
28 lines
1.2 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",
|
|
"/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";
|
|
}
|
|
}
|