2026-02-17 17:31:00 +09:00
|
|
|
package com.gcsc.guide.config;
|
|
|
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|
|
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
|
public class WebMvcConfig implements WebMvcConfigurer {
|
|
|
|
|
|
|
|
|
|
private final ApiAccessLogInterceptor apiAccessLogInterceptor;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
|
|
|
registry.addInterceptor(apiAccessLogInterceptor)
|
|
|
|
|
.addPathPatterns("/api/**")
|
2026-02-18 12:54:00 +09:00
|
|
|
.excludePathPatterns("/api/health", "/api/health/**", "/api/auth/check");
|
2026-02-17 17:31:00 +09:00
|
|
|
}
|
|
|
|
|
}
|