Skip to content

Commit

Permalink
♻️ Mydifing Todo List
Browse files Browse the repository at this point in the history
Now, return Todo Guide at postTodo

Related:
  • Loading branch information
L-U-Ready committed Nov 18, 2024
1 parent 5fff442 commit 3f60f5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/LearnMate/dev/controller/PlanController.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public ApiResponse<String> getTodos() {

@PostMapping()
public ApiResponse<String> createTodo(@RequestBody @Valid PlanPostRequest request) {
return ApiResponse.onSuccess(planService.postTodo(request));
return ApiResponse.onSuccessData("Todo Guide 생성", planService.postTodo(request));
}

@GetMapping("/{todoId}")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/LearnMate/dev/service/PlanService.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public String postTodo(PlanPostRequest request) {

planRepository.save(PlanConverter.toPlan(request.getContent(), user, guide));

return "Todo 생성";
return guide;
}

// Todo 상세 조회
Expand Down

0 comments on commit 3f60f5a

Please sign in to comment.