diff --git a/src/main/java/com/expensys/controller/ExpenseManagementController.java b/src/main/java/com/expensys/controller/ExpenseManagementController.java index 1318ac0..680d0b1 100644 --- a/src/main/java/com/expensys/controller/ExpenseManagementController.java +++ b/src/main/java/com/expensys/controller/ExpenseManagementController.java @@ -20,11 +20,8 @@ public ExpenseManagementController(ExpenseManagementService expenseManagementSer this.expenseManagementService = expenseManagementService; } - @CrossOrigin @PostMapping("/save") public ResponseEntity saveExpense(@RequestBody NewExpense newExpense){ - logger.info("newExpense -> {}",newExpense); -// expenseManagementService.addExpense(newExpense); return new ResponseEntity<>(expenseManagementService.addExpense(newExpense) ? HttpStatus.OK : HttpStatus.INTERNAL_SERVER_ERROR); } } diff --git a/src/main/java/com/expensys/controller/ReportController.java b/src/main/java/com/expensys/controller/ReportController.java index 77c010d..ff07a4c 100644 --- a/src/main/java/com/expensys/controller/ReportController.java +++ b/src/main/java/com/expensys/controller/ReportController.java @@ -21,7 +21,6 @@ public ReportController(ExpenseManagementService expenseManagementService) { this.expenseManagementService = expenseManagementService; } - @CrossOrigin @GetMapping public ResponseEntity> getReport(@ModelAttribute ReportRequest reportRequest){ List reportList = expenseManagementService.getReport(reportRequest);