feat: 문자 발송에 대한 에 대한 interceptor 진행중

This commit is contained in:
hylee 2023-05-16 12:20:38 +09:00
parent 595763deaf
commit c50db98993
2 changed files with 14 additions and 1 deletions

View File

@ -29,10 +29,23 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
/**
* 모든 api 요청에 대한 key 인증 lettnloginlog Insert
*/
registry.addInterceptor(certifInterceptor())
.addPathPatterns("/api/**")
.excludePathPatterns("/api/accessTest/**")
;
/**
* 2023-05-16
* send에 대한 interceptor 설정 - lettngnrlmber_access_log Insert
* 진행중
*/
// registry.addInterceptor(certifInterceptor())
// .addPathPatterns("/api/send/**")
// ;
//.excludePathPatterns("/css/**", "/images/**", "/js/**");
}

View File

@ -47,7 +47,7 @@ public class SendRestController {
* @Discription 문자 발송 테스트
* @return
*/
@PostMapping("/api/sendTest")
@PostMapping("/api/send/sendTest")
public MjonResponseVO sendTest(MsgRequestVO msgRequestVO) throws Exception {
return sendService.sendMsgData(msgRequestVO);