로그 추가
This commit is contained in:
@@ -71,12 +71,14 @@ public class ApiController {
|
||||
}
|
||||
ApiInfo api = apiService.findByUrlAndServiceValue(url, serviceValue);
|
||||
if (api == null) {
|
||||
logger.info("Not found API(URL={}, ServiceValue={}", url, serviceValue);
|
||||
throw new ResponseStatusException(HttpStatus.NOT_FOUND,
|
||||
String.format("Not found API(URL=%s, ServiceValue=%s", url, serviceValue));
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(api.getMethod())) {
|
||||
if (!api.getMethod().equalsIgnoreCase(request.getMethod())) {
|
||||
logger.info("Method({}) not allowe", request.getMethod());
|
||||
throw new ResponseStatusException(HttpStatus.METHOD_NOT_ALLOWED,
|
||||
String.format("Method(%s) not allowed", request.getMethod()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user