Add expense/income deletion
This commit is contained in:
@@ -96,4 +96,9 @@ public class IncomeController {
|
||||
if (!categories.isEmpty()) return ResponseEntity.ok(categories);
|
||||
else return ResponseEntity.notFound().build();
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete/{id}")
|
||||
public void deleteIncome(@PathVariable long id) {
|
||||
incomeService.deleteIncomeById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user