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); }