Skip to content

Commit

Permalink
Merge pull request #40 from potenday-project/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
cyzlcyzl authored Dec 16, 2023
2 parents 11d4ecf + 7a114ed commit 58152d1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.Map;

@Slf4j
@RestController
Expand All @@ -36,7 +37,9 @@ public ResponseEntity<String> editTodo(@RequestBody TodoRequestDTO todoRequestDT
}

@PostMapping("/check")
public ResponseEntity<String> checkTodo(@RequestBody Long todoId){
public ResponseEntity<String> checkTodo(@RequestBody Map<String, Object> requestBody){
Integer tmp = (Integer) requestBody.get("todoId");
Long todoId = Long.valueOf(tmp);
return ResponseEntity.ok(todoService.check(todoId));
}
}

0 comments on commit 58152d1

Please sign in to comment.