이준호 문자온API 커밋

- 인터셉터 url패턴 변경
 - 오류 수정
This commit is contained in:
leejunho 2023-05-16 10:34:19 +09:00
parent 68592e5adc
commit cf7ccbc870
2 changed files with 4 additions and 6 deletions

View File

@ -30,8 +30,8 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(certifInterceptor())
.addPathPatterns("/api/accessKey/**")
//.addPathPatterns("/api/accessTest/**")
.addPathPatterns("/api/**")
.excludePathPatterns("/api/accessTest/**")
;
//.excludePathPatterns("/css/**", "/images/**", "/js/**");
}

View File

@ -8,8 +8,6 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import com.itn.mjonApi.cmn.msg.PlainResponse;
import com.itn.mjonApi.cmn.msg.RestResponse;
import com.itn.mjonApi.mjon.api.send.mapper.domain.MjonMsgVO;
import lombok.extern.slf4j.Slf4j;
@ -36,10 +34,10 @@ public class PriceRestController {
* @return
*/
@PostMapping("/api/selectPrice")
public ResponseEntity<PlainResponse> selectPrice(MjonMsgVO mjonMsgVO){
public ResponseEntity<PlainResponse> selectPrice(){
return ResponseEntity.ok(new PlainResponse(HttpStatus.OK, "test" , LocalDateTime.now(), null));
return ResponseEntity.ok(new PlainResponse(HttpStatus.OK, "test" , LocalDateTime.now(), ""));
}
}