From 5a1797add8c93ce03278245aa97071b3cf09d67a Mon Sep 17 00:00:00 2001 From: byung eun park Date: Wed, 4 Sep 2019 18:51:55 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=84=EC=A2=8C=EB=B6=84=EB=A6=AC=20?= =?UTF-8?q?=EC=BB=A8=ED=8B=80=EB=A1=A4=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/totopia/server/config/WebSecurityConfig.java | 2 ++ .../server/modules/site/controller/BankInfoController.java | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/totopia/server/config/WebSecurityConfig.java b/src/main/java/com/totopia/server/config/WebSecurityConfig.java index 715ae3c..0fad383 100644 --- a/src/main/java/com/totopia/server/config/WebSecurityConfig.java +++ b/src/main/java/com/totopia/server/config/WebSecurityConfig.java @@ -76,6 +76,8 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { .antMatchers("/league/**") .permitAll() .anyRequest() + .permitAll() + .antMatchers("/bank_info/**") .authenticated(); http.addFilterBefore(jwtAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class); diff --git a/src/main/java/com/totopia/server/modules/site/controller/BankInfoController.java b/src/main/java/com/totopia/server/modules/site/controller/BankInfoController.java index 0e3712f..2f816b8 100644 --- a/src/main/java/com/totopia/server/modules/site/controller/BankInfoController.java +++ b/src/main/java/com/totopia/server/modules/site/controller/BankInfoController.java @@ -31,15 +31,15 @@ public class BankInfoController { return this.bankInfoService.getAllBankInfo(pageable); } - @PostMapping(value = "/league") + @PostMapping(value = "/bank_info") @ResponseStatus(code = HttpStatus.CREATED) public ResponseEntity save(@Valid @RequestBody BankInfoEntity bankInfoEntity) throws Exception{ this.bankInfoService.save(bankInfoEntity); return ResponseEntity.ok().body(new ApiResponse(true, "BankInfo registered successfully")); } - @PutMapping(value = "/league/{leagueId}") - public ResponseEntity updateLeague(@PathVariable Long leagueId, BankInfoEntity bankInfoEntity) throws Exception { + @PutMapping(value = "/bank_info/{bankInfoId}") + public ResponseEntity updateLeague(@PathVariable Long bankInfoId, BankInfoEntity bankInfoEntity) throws Exception { BankInfoEntity leagueEntity1 = this.bankInfoService.modify(bankInfoEntity); return ResponseEntity.ok(leagueEntity1); }