@PreAuthorize("hasRole(\'ROLE_USER\')")
@DeleteMapping("")
publicObjectdeleteTodo(@RequestParam
Long id)
deleteTodo_Admin
@PreAuthorize("hasRole(\'ROLE_ADMIN\')")
@DeleteMapping("/admin")
publicObjectdeleteTodo_Admin(@RequestParam
Long id)
putTodoById
@PreAuthorize("hasRole(\'ROLE_USER\')")
@PutMapping("")
publicTodoputTodoById(@RequestParam
Long id,
@RequestBody @Valid
@Valid Todo incomingTodo)
putTodoById_admin
@PreAuthorize("hasRole(\'ROLE_ADMIN\')")
@PutMapping("/admin")
publicTodoputTodoById_admin(@RequestParam
Long id,
@RequestBody @Valid
@Valid Todo incomingTodo)