Skip to content

Commit

Permalink
remove cross origin annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
pradipmudi committed Oct 30, 2023
1 parent da74487 commit b336011
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ public ExpenseManagementController(ExpenseManagementService expenseManagementSer
this.expenseManagementService = expenseManagementService;
}

@CrossOrigin
@PostMapping("/save")
public ResponseEntity<HttpStatus> saveExpense(@RequestBody NewExpense newExpense){
logger.info("newExpense -> {}",newExpense);
// expenseManagementService.addExpense(newExpense);
return new ResponseEntity<>(expenseManagementService.addExpense(newExpense) ? HttpStatus.OK : HttpStatus.INTERNAL_SERVER_ERROR);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public ReportController(ExpenseManagementService expenseManagementService) {
this.expenseManagementService = expenseManagementService;
}

@CrossOrigin
@GetMapping
public ResponseEntity<List<Report>> getReport(@ModelAttribute ReportRequest reportRequest){
List<Report> reportList = expenseManagementService.getReport(reportRequest);
Expand Down

0 comments on commit b336011

Please sign in to comment.