diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/config/AdminConfigController.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/config/AdminConfigController.java index 3edaf78..5540cbd 100644 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/config/AdminConfigController.java +++ b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/admin/config/AdminConfigController.java @@ -507,7 +507,7 @@ public class AdminConfigController extends BaseController { @ApiResponse(responseCode = "403", description = "인가된 사용자가 아님") }) @RequestMapping(method = RequestMethod.GET, value = "/about-site-mgt/list", consumes = MediaType.APPLICATION_JSON_VALUE) - public ResultVO getPartnerSiteList(@AuthenticationPrincipal LoginVO user, HttpServletRequest request) throws Exception { + public ResultVO getPartnerSiteList() throws Exception { ResultVO resultVO = new ResultVO(); Map resultMap = new HashMap<>(); List tnPartnerSite = configService.selectPartnerSiteList(); @@ -537,10 +537,14 @@ public class AdminConfigController extends BaseController { @ApiResponse(responseCode = "403", description = "인가된 사용자가 아님") }) @RequestMapping(method = RequestMethod.GET, value = "/about-site-mgt/get-site-image") - public void getSiteImage(@AuthenticationPrincipal LoginVO user, HttpServletRequest request, HttpServletResponse response, @RequestParam String fileGrpId) throws Exception { + public void getSiteImage(HttpServletResponse response, @RequestParam String fileGrpId) throws Exception { List dbImgList = fileService.findByFileGrpId(fileGrpId); - String realFile = dbImgList.get(0).getFilePath(); - String fileNm = dbImgList.get(0).getFileNewName(); + String realFile = ""; + String fileNm = ""; + if (!dbImgList.isEmpty()) { + realFile = dbImgList.get(0).getFilePath(); + fileNm = dbImgList.get(0).getFileNewName(); + } BufferedOutputStream out = null; InputStream in = null; diff --git a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/config/security/WebMvcConfig.java b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/config/security/WebMvcConfig.java index a0491a0..a35c4f0 100644 --- a/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/config/security/WebMvcConfig.java +++ b/kcsc-back-end/src/main/java/com/dbnt/kcscbackend/config/security/WebMvcConfig.java @@ -30,7 +30,8 @@ public class WebMvcConfig implements WebMvcConfigurer { registry.addInterceptor(authCheckInterceptor) .addPathPatterns("/admin/**") .excludePathPatterns( - "/admin/dashboard/**" + "/admin/dashboard/**", + "/admin/config/about-site-mgt/get-site-image/**" ); } @Override