계좌분리 컨틀롤러 수정
This commit is contained in:
		
							parent
							
								
									3d49e5212d
								
							
						
					
					
						commit
						5a1797add8
					
				| @ -76,6 +76,8 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { | ||||
|             .antMatchers("/league/**") | ||||
|           .permitAll() | ||||
|             .anyRequest() | ||||
|           .permitAll() | ||||
|             .antMatchers("/bank_info/**") | ||||
|         .authenticated(); | ||||
| 
 | ||||
|     http.addFilterBefore(jwtAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class); | ||||
|  | ||||
| @ -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); | ||||
|   } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user